tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: How to read org.apache.jasper.JasperException tracebacks
Date Thu, 13 Nov 2003 12:01:47 GMT
Unfortunately in tomcat 4, it doesn't delve deep enough into the nested 
exceptions such as Servlet exception to print the real root cause.

As to finding out the real error, see line:

Most important is So look for a file called in your work directory and line 451.

But you'll probably notice that line 451 is not your code, but code generated 
by Jasper. Which is catching an uncaught exception in your code.

So in a nutshell, as a quicky debug you can wrap that jsp in a 
try{}catch(Throwable e){e./printStackTrace();}. Emphasis on quicky fix to 
debug, not recommended for production.


Nicholas Piper wrote:

> Tim,
> On Wed, 12 Nov 2003, Tim Funk wrote:
>>Typically there are 2 (or more exceptions shown). Usually the "bottom most" 
>>exception is the one your most interested in since that what through the 
>>real exception. The reason is because the JSP catches an exception, wraps 
>>it in a JSPException, and throws it where it is caught by the servlet 
>>engine and rewrapped into another exception (ServletException or 
> Concentrating on that traceback, what does this bottom exception show
> me? (The rest is at is at )
> javax.servlet.ServletException: org/adl/validator/contentpackage/CPValidator
>  at org.apache.jasper.runtime.PageContextImpl.handlePageException(
>  at org.apache.jsp.LMSCourseImport_jsp._jspService(
> This is the only mention I can find of a jsp page that I've
> 'written'. Is there a way to map line number 451 onto my actual .jsp
> file contents? What does the mention of
> org/adl/validator/contentpackage/CPValidator tell me?
>  at org.apache.jasper.runtime.HttpJspBase.service(
>  at javax.servlet.http.HttpServlet.service(
>  at org.apache.jasper.servlet.JspServletWrapper.service(
>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(
>  at org.apache.jasper.servlet.JspServlet.service(
>  at javax.servlet.http.HttpServlet.service(
> [...]
>  Nick

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message