Error in package name:
javax.servlet.ServletException
^^^^^^^
(By the way I configure mine for java.lang.Throwable just in case something
bizarre happens.)
If that doesn't fix it, check that you don't have an error in your "500.jsp"
- if you do, then an exception will be thrown when tomcat tries to process
it, and it will give up on your page and use its own. Check your logs very
carefully to see where the error is first caused, and also check very
carefully what error is reported in the default tomcat error page. In the
log, you might see the original exception logged, then further down, a
second exception logged as TC encounters the error in 500.jsp.
Another way to double-check that your 500.jsp is correct is to temporarily
replace it with a very simple "500.html" page that uses no JSP:
<html>
<head><title>Customer error</title></head>
<body>
<p>My custom error 500 page</p>
</body>
</html>
Restart TC, trigger a 500 error, then if this page displays, you know that
500.jsp is broken
> -----Original Message-----
> From: Didier McGillis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday 26 October 2004 17:32
> To: [EMAIL PROTECTED]
> Subject: custom 500 in tomcat 5
>
>
> <error-page>
> <error-code>404</error-code>
> <location>/errorpages/404.html</location>
> </error-page>
> <error-page>
> <error-code>500</error-code>
> <location>/errorpages/500.jsp</location>
> </error-page>
> <error-page>
> <exception-type>javax.ServletException</exception-type>
> <location>/errorpages/500.jsp</location>
> </error-page>
>
> Is what i have setup for error pages. 404 seems to work
> fine, 500 keeps
> going to the default Tomcat error page.
>
> Help
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]