tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yansheng Lin" <yansheng....@silvacom.com>
Subject RE: Problem with custom error pages for Error 500 - Workaround ?
Date Thu, 29 Apr 2004 15:08:12 GMT
Oh I see.  You want to notify your users that you are restarting Tomcat,
right:).

Ok, that's an entirely different issue.  Whatever is defined in your
deployer(web.xml) is only relevant when you run the web application.  When
you restart Tomcat, you are effectively shutting down your jsp engine.
That's why you are getting a 500 when your web server(Apache?) trys to
connect. Your jsp engine is not serving up anything for the duration of
shuttingdown.

You can either come up with a customized page for your web server,  or you
can perform a quick test to see if your tomcat is up running before you make
any call.  

Cheers:).

Yan Lin
Sun Certified J2EE Web Component Developer
http://j2e-translate.sourceforge.net (need help)


-----Original Message-----
From: Frank Duffner [mailto:Frank.Duffner@Innovations.de] 
Sent: April 28, 2004 06:49
To: Tomcat Users List
Subject: Re: Problem with custom error pages for Error 500 - Workaround ?


my error pages are only html (they are just called jsp). I don't think 
they create exceptions.

The background is I want have a customized message the moment tomcat is 
restarted and
my webapp hasn't yet been loaded, which is actually only some seconds.

Frank


Matt Anderson wrote:

>Sorry Frank, I wasn't very clear was I. What I was saying was that in my
>case the custom error page was throwing an exception causing an error 500
to
>appear rather than showing the custom error page. I am not saying this is
>the case with your problem, but it is possible.
>
>What I am suggesting is going through your custom error jsp page and check
>that there is no possibility that it won't throw any exceptions.
>
>Matt
>
>-----Original Message-----
>From: Frank Duffner [mailto:Frank.Duffner@Innovations.de]
>Sent: Wednesday, April 28, 2004 10:26 PM
>To: Tomcat Users List
>Subject: Re: Problem with custom error pages for Error 500 - Workaround
>?
>
>
>Hi Matt,
>
>I'm not sure I understood. You mean problem is the jsp creates an
>exception or should I make it do that?
>
>  
>
>>I renamed my error pages to jsp (they are only html)
>>    
>>
>
>My problem is not about not having error 500 pages. but when I have them I
>want my custom error page shown.
>
>
>Frank
>
>
>Matt Anderson wrote:
>
>  
>
>>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
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message