You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Berglas, Anthony" <ab...@rsasecurity.com> on 2007/07/11 04:06:27 UTC

Jasper Gobbling exceptions

When I call a JSP directly via web.xml exceptions provide a number of
"root cause" stack traces the second or third of which indicates what
the exception actually was and, with some deciphering, which .tag file
generated it.  The trace is shown on both the form and Tomcat standard
output, which is handy.

However when I call the JSP from a Servlet only the first, useless,
JasperException is displayed.  On has to go to the Tomcat log to see the
real exception.  This happens regardless of whether .forward or .include
is used.

Is it possible to invoke the JSP via the servelet and still get the
underlying exception?  (Would be handy during development.)

Anthony

--
Dr Anthony Berglas 
Ph. +61 7 3227 4410
(Mob. +61 42 783 0248)
ABerglas@RSA.com; Anthony@Berglas.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Jasper Gobbling exceptions

Posted by Rob Adamson <bo...@gmail.com>.
On 11/07/07, Berglas, Anthony <ab...@rsasecurity.com> wrote:
> When I call a JSP directly via web.xml exceptions provide a number of
> "root cause" stack traces the second or third of which indicates what
> the exception actually was and, with some deciphering, which .tag file
> generated it.  The trace is shown on both the form and Tomcat standard
> output, which is handy.
>
> However when I call the JSP from a Servlet only the first, useless,
> JasperException is displayed.  On has to go to the Tomcat log to see the
> real exception.  This happens regardless of whether .forward or .include
> is used.
>
> Is it possible to invoke the JSP via the servelet and still get the
> underlying exception?  (Would be handy during development.)

Could you set an error page on the JSP? This could then output the
full exception chain.

Rob

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org