Hi Frank,
I have had a similiar problem, the thing that I found was my error page in
your case would be server_error.jsp was also throwing an exception. Is there
any code with in server_error.jsp that may cause it to throw an exception? I
hope this info helps.
Matt
-----Original Message-----
From: Frank Duffner [mailto:Frank.Duffner@(protected)]
Sent: Wednesday, April 28, 2004 10:05 PM
To: Tomcat Users List
Subject: Problem with custom error pages for Error 500 - Workaround ?
Hi all,
I seem to have a common problem, but there seems no real solution around:
I want a customized error page for error 500 to be shown instead of the
standard tomcat page.
I have the following lines in my web.xml:
<error-page>
<error-code>404</error-code> // this works
<location>/file_not_found.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/server_error.jsp</location> // this doesn't
</error-page>
<error-page>
<exception-type>
java.lang.Exception</exception-type>
<location>/server_error.jsp</location>
</error-page>
I already searched the net and found that a lot of people seem to have
the same problem, but no answers given seem to work with my installation.
- I use tomcat 4.1.29 with jboss 3.2.3.
- the web.xml is the one from tomcat not from the context (wouldn't make
much sense ;) )
- I renamed my error pages to jsp (they are only html) cause somewhere
someone wrote this would help
- I filled the files with some extra content as someone wrote that it's
a cache problem and bigge files would work.
- I added the error page for the Exception (seemed to work for someone
else when he did that)
Still doesn't work.
Seems like a bug in tomcat (someone wrote hat, too , but said it was
fixed in 4.1.24 - I have .29 :( )
Does anyone have an idea how to do this or maybe have a workaround?
Thanks for answers.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)