> -----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 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't ask me for details I honestly don't know.
> 
> Hopefully someone else can be more helpful, it's just a suggestion
> 
> HTH
> 
> Regards,
> 
> Serge Fonville
> 
> On Thu, Aug 20, 2009 at 3:25 PM, llg<l...@portaildulibre.fr> 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,  
> > but it doesn't seems to be resolved when the context is stopped.
> >
> > If I type an URL that doesn't exists, that doesn't map to 
> any context, 
> > I get the right error page. But if it match a context path 
> of a webapp 
> > that is stopped, I have the Tomcat default error page. Is 
> there a way to fix this?

We avoid all of this by replacing the webapp with a maintenance app. The app
indicates the period of downtime, who to call, etc for all urls. When we are
done, we deploy the application back. Also as prt of this all of our
applications use a common login/header facility which ckecks to see if a
maintenance event is near to 1. warn users to save and log out, 2. prevent new
logins, 3. disable the app until event is over (or replaced by maintenance app).

> >
> > Thanks
> >
> > Tomcat 6.0.20
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to