Sorry, make that java.lang.Throwable instead of java.lang.Exception.

Andoni.

----- Original Message -----
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 7:36 PM
Subject: Re: Error Page 500 Not working. FAQ


> Well, it seems to come up quite frequently on the web and in the
talk-groups
> that the error-page for 500 errors does not work.  In reading the spec. I
> have found a work-around though.
>
>  <error-page>
>   <exception-type>java.lang.Exception</exception-type>
>   <location>/jsp/error500.jsp</location>
>  </error-page>
>
> this will work for all sub-classes of Exception and as this includes all
> classes that cause and error 500 then it works well.
> It would be nice to have it work correctly though!  Even in the early
> version of 5.0.x it seems to have been not working again after being fixed
> late in the 4.1.x line.
>
> Andoni.
>
> ----- Original Message -----
> From: "Andoni" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 10, 2003 6:19 PM
> Subject: Error Page 500 Not working.
>
>
> Hello,
>
> I am trying to implement error pages for my site.  They seem to work when
I
> specify the particular exception in the web.xml file thus:
>
>   <error-page>
>   <exception-type>java.lang.NullPointerException</exception-type>
>   <location>/jsp/error500.jsp</location>
>  </error-page>
>
> but not when I specify the error number as below.  What happens is that
when
> I have both of these entries in the web.xml and I put a divide by zero
error
> into my code to test it then it brings up the default Tomcat error page
with
> the Exception and the 500 at the top?
>
> <error-page>
>   <error-code>500</error-code>
>   <location>/jsp/error500.jsp</location>
>  </error-page>
>
> Am I missing something?
>
> Andoni.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to