You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jay Wright <jw...@once.com> on 2003/02/04 23:05:58 UTC
web.xml error-page not working for 500 errors
I have configured my webapp to serve up error pages via the web.xml file:
<error-page>
<error-code>500</error-code>
<location>/general_error.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/general_error.html</location>
</error-page>
This works without a problem for 404 errors, but 500 errors (such as
NullPointerExceptions) are not redirecting to the general_error.html page.
Is there a reason for this or is it a bug in tomcat 4.0.4?
Jay
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org