Guess What?

Looks like it was the JSP, I should know every single time I rule out something by taking for granted that I did something right the first time, I end up finding that was the problem.

Oh well :)

Off to fix that

From: "Steve Kirk" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: RE: custom 500 in tomcat 5
Date: Tue, 26 Oct 2004 18:00:40 +0100


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]


_________________________________________________________________
MSN� Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN� Premium right now and get the first two months FREE*.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to