You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kannan Jayaprakasam <ka...@arcot.com> on 2010/09/09 17:27:18 UTC

RE: Unable to get any information why jsp page fails to generate code

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?

Thanks
Kannan

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Tuesday, August 17, 2010 8:42 PM
To: Tomcat Users List
Subject: Re: Unable to get any information why jsp page fails to generate code

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

Kannan,

On 8/17/2010 12:22 AM, Kannan Jayaprakasam wrote:
> Any ideas? 

Try catching all exceptions and writing them to stdout or something. Is
errorPage.html actually a JSP?

If you'll notice, the original exception is java.lang.Exception (which
isn't detailed) and then the stack trace describes the
java.lang.IllegalStateException.

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

iEYEARECAAYFAkxqprsACgkQ9CaO5/Lv0PC3kQCffwWWfpyLgZBhGcicVpbEo6Sx
zCEAnjceVrPHPdrzm4gUNQcSG9Erxy3C
=w4eY
-----END PGP SIGNATURE-----

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


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


Re: Unable to get any information why jsp page fails to generate code

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org