Thanks, Charles. 
   
  I should have mentioned that I have tried to use the global web.xml but it 
does not work either. (Just keep the error pages in the same place, and add the 
<error-page>'s in the global web.xml in $TOMCAT_HOME/conf)
   
  According to the spec, it should catch 4xx and 5xx. 
   
  From Servlet Spec v2.4, 
  SRV.9.9.2 Error Pages
   
  ==========
  If the sendError method is called on the response, the container consults the
  list of error page declarations for the Web application that use the 
status-code
  syntax and attempts a match. If there is a match, the container returns the 
resource
  as indicated by the location entry.
  ...
   
  The default servlet and container will use the sendError method to send 4xx
  and 5xx status responses, so that the error mechanism may be invoked.
  ================
   
  Thanks,
  YM

"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:
  > From: Yue Mu [mailto:[EMAIL PROTECTED] 
> Subject: Custom HTTP 503 Error Page Not Working - Tomcat 5.5.15
> 
> However, when the web application is stopped (unavailable),
> it returns the default Tomcat 503 error page (see below),
> not the custom error page.

If the application is not available, its custom error pages are also not
available. You might be able to put your 503 page in Tomcat's global
web.xml, but I can't say that I've tried it.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



                
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

Reply via email to