-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kannan,

On 9/9/2010 11:27 AM, Kannan Jayaprakasam wrote:
> I discovered that in web.xml some error pages were mentioned as 
> genericError.htm but this file existed no where. I removed the setting of 
> error pages from web.xml. But now when a jsp page fails to  compile, nothing 
> at all gets written to stdout (earlier there was a stracktrace mentioning 
> /genericError.htm). 
> 
> " Try catching all exceptions and writing them to stdout or something"
>    That is for exceptions that happen during the running of a jsp page right? 
> If the jsp page itself fails to compile, what exception is there to catch?

I'm not sure you /can/ catch that exception, but you might be able to.
What exception gets thrown when a page won't compile? Presumably, the
JspServlet throws an exception when compilation fails, instead of
generating its own error page.

If it throws an exception, you can configure an errorPage for that
exception and log it.

You should probably make sure all your JSPs compile before going into
production, though ;)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyJFrgACgkQ9CaO5/Lv0PCVlwCeMlb9obxLdsDI7NSN5o+IvWbe
X0kAn1JZfdnnYfe+n020UBezBFVPrkGB
=SYx9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to