Re: A Global Error Page (JSP or JSF)
Hi Chris, I guess you're question pointed to Sam, right? Anyways, that's also what I think. According to the specs a *noncaught* exception should trigger the errorpage At least here it's working as expected ;) Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Global Error Page (JSP or JSF)
It works most of the time but sometimes it doesn't for no discernible reason. :( One of life's great mysteries that I am looking in to. In Response To: Hi Chris, I guess you're question pointed to Sam, right? Anyways, that's also what I think. According to the specs a *noncaught* exception should trigger the errorpage At least here it's working as expected ;) Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Techienuggets Netbeans IDE Forum: http://www.techienuggets.com/Detail?tx=11104 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Global Error Page (JSP or JSF)
I have configured a servlet to display an error message and a stack trace for 500 errors 9defined in web.xml). It works sometimes and not at others? By this i mean some 500 errors are caught and reported the others just cause an error and failure. In Response To: Does anybody have an example of global JSP (or JSF) error page that can be used to catch 500 errors genertaed by either servlets or jsps? Thanks. Sent from Techienuggets Netbeans IDE Forum: http://www.techienuggets.com/Detail?tx=11104 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Global Error Page (JSP or JSF)
try to put something like this into your web.xml (i hope that is what you've been asking for): error-page exception-typejava.lang.Throwable/exception-type location/errorPages/generalError.html/location /error-page That page should just display some message like general error occured, please report to webmaster... . The error itself you then should find in your logs. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Global Error Page (JSP or JSF)
That's exactly what I have done. I have even tested it by having a servlet do a int i = 500/0; which causes a 500 error and a divide by zero exception which invokes the page correctly with the error and the stack trace; however, sometimes for errors (like trying to access a null object) the page is not invoked but there's a stack trace in the logs. In Response To: try to put something like this into your web.xml (i hope that is what you've been asking for): error-page exception-typejava.lang.Throwable/exception-type location/errorPages/generalError.html/location /error-page That page should just display some message like general error occured, please report to webmaster... . The error itself you then should find in your logs. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Techienuggets Netbeans IDE Forum: http://www.techienuggets.com/Detail?tx=11104 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Global Error Page (JSP or JSF)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, [EMAIL PROTECTED] wrote: however, sometimes for errors (like trying to access a null object) the page is not invoked but there's a stack trace in the logs. Is it possible that the exception is being caught and logged before it can fall all the way through to Tomcat's error handler? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGzcRy9CaO5/Lv0PARAi4xAJ0RVgMkcrD9sUeBsYWVjZaWda9SOACfaDf/ Rena9GlPkNaOC1HHgYzTipo= =+oMm -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]