Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 20:51, llg wrote: Le 20/08/09 21:25, André Warnier a écrit : llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml 404 /my404.html 503 /my503.html I do not really *know* this, but based on the XML structure of other Tomcat config files, the above form looks fishy to me.

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 21:25, André Warnier a écrit : llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml 404 /my404.html 503 /my503.html I do not really *know* this, but based on the XML structure of other Tomcat config files, the above form looks fishy to me. Should it not at least be somet

Re: Custom 404 page when webapp stopped

2009-08-20 Thread André Warnier
llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml 404 /my404.html 503 /my503.html I do not really *know* this, but based on the XML structure of other Tomcat config files, the above form looks fishy to me. Should it not at least be something like > > 404 > /my404.html > > > 503 >

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 17:48, Pid a écrit : On 20/08/2009 16:04, llg wrote: Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 cu

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
Since there is manual intervention to stop the app. There can be manual intervention to tell apache not to forward requests to tomcat, for example: - change the apache config and graceful restart (but it does require a restart) - Use mod_rewrite to look for some marker (file existence or rewrite

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Len Popp
On Thu, Aug 20, 2009 at 10:58, Tim Funk wrote: > From a high level, whats the difference between a webapp thats stopped and a > webapp thats undeployed? When a webapp is undeployed it is deleted from the webapps directory. When it's stopped it's not deleted and can simply be re-started. In this ca

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 16:04, llg wrote: Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed.

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed. I modified the default web.xml (

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
to make. (Too lazy to look up the bug report) [Personally - I'd rather stick apache in front let apache trap the condition during the outage window and not worry about the rest.] -Tim Caldarale, Charles R wrote: From: Tim Funk [mailto:funk...@apache.org] Subject: Re: Custom 404 page

RE: Custom 404 page when webapp stopped

2009-08-20 Thread Caldarale, Charles R
> From: Tim Funk [mailto:funk...@apache.org] > Subject: Re: Custom 404 page when webapp stopped > > From a user point of view, if I have an app (which is not the root > webapp) and I stop it, then all requests should then go to the root > webapp. Is that really true?

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
My first inclination is that this a bug or enhancement request. From a user point of view, if I have an app (which is not the root webapp) and I stop it, then all requests should then go to the root webapp. Of course doing this might introduce bad side effects during the course of an applicati

RE: Custom 404 page when webapp stopped

2009-08-20 Thread Jason Pyeron
> -Original Message- > From: Serge Fonville [mailto:serge.fonvi...@gmail.com] > Sent: Thursday, August 20, 2009 9:35 > To: Tomcat Users List > Subject: Re: Custom 404 page when webapp stopped > > Hi, > > Likely someone has a better idea... > > You

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed. I modified the default web.xml (in conf/) to add the error-page 404,

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Serge Fonville
Hi, Likely someone has a better idea... You could create a general error page that redirect (transparently) to a page of the webapp when available, if not, display another If this is the default page for all webapps, it should be solved. You will probably need to create a valve of some sort. Don'