tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37062] New: - More helpful message when exceptions are raised on JSPs
Date Thu, 13 Oct 2005 01:40:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37062>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37062

           Summary: More helpful message when exceptions are raised on JSPs
           Product: Tomcat 5
           Version: Unknown
          Platform: All
               URL: http://www.tfenne.com/jasper/
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tfenne@tfenne.com


The JasperException that is thrown whenever an exception is thrown either directly on a JSP
or by code 
invoked directly or indirectly from the JSP only ever contains the line number of the line
in the 
generated java servlet file.  This means that developers have to trawl through the Tomcat
working 
directory, dig up the generated java file, then compare the generated line against their JSP
to figure out 
where the error originated from.

Several other containers, WebLogic and Resin to mention but two, provide more information;
crucially 
the line number in the JSP and in WebLogic's case a fragment of the JSP showing the error
in context.

I have assembled a patch (which I will attach here) that provides similar functionality in
Tomcat.  The 
diff is against SVN as of the date of submitting this bug.  The full modified source files
are available for 
download at the URL attached to this bug, should the patch be out of date by the time it is
processed.

I find this is a huge productivity booster for me, and my post to the Tomcat user mailing
list elicited 
replies asking for the source code *now*.  I hope this can find it's way into the next build(s)
of Tomcat.  
I've tested it against 5.5.9 and 5.5.12, but not the 5.0 releases.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message