wood burning stoves 2.0*
The moose likes Tomcat and the fly likes jsp line numbers for errors and exceptions with tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp line numbers for errors and exceptions with tomcat" Watch "jsp line numbers for errors and exceptions with tomcat" New topic
Author

jsp line numbers for errors and exceptions with tomcat

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,

Can anyone please explain to me under which circumstances tomcat does or does not show jsp line numbers when an error or exception occurs. Is it to do with the problem occurring at translation time or compilation time or runtime? How can I make sure tomcat always show jsp line numbers and not servlet line numbers?

Thanks in advance,

Julien.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Since there are two separate processes involved in "executing" a JSP you are naturally going to have two error sources.
The stage of translating JSP to servlet code only knows JSP line numbers.
The stage of compiling servlet code only knows servlet line numbers.
Bill
 
jQuery in Action, 2nd edition
 
subject: jsp line numbers for errors and exceptions with tomcat
 
Similar Threads
Doubt: from SCJP6.0 K&B MockExam-1.
VAJ 4.0
WSAD 4.0.3 - work wrap and line numbers
A question about Debug mode in Eclipse
Stack traces without line numbers