tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D'Emic" <>
Subject RE: META-INF/context.xml and custom Manager
Date Sun, 07 May 2006 20:43:02 GMT

Adding the context.xml to the war file did the trick.  When I redeployed the
war my custom manager loaded.

Thanks all for the help!

-----Original Message-----
From: Michael Echerer [] 
Sent: Saturday, May 06, 2006 2:09 AM
To: Tomcat Users List
Subject: Re: META-INF/context.xml and custom Manager

John D'Emic wrote:
> Hey all,
> I have a custom Manager class I'm trying to use for a single webapp.  It
> seems the way to do this is to have a context.xml file in the exploded
> webapp's META-INF directory.  I have the following:

Well, META-INF/context.xml is the right place, but for a .war file that
you deploy. Tomcat will extract this xml and copy it to
Not sure if it works for deployment of true exploded .wars.

So please check that this file actually contains your
META-INF/context.xml content and not just a plain empty <context>
element because you once deployed your webapp beforehand.

To my experience, if META-INF/context.xml changes seem to have no
effect, it is usually because the \conf\Catalina\localhost\ deployment
descriptor is still unchanged.
Unfortunately I'm not sure how Tomcat decides when to update that file
and when not (not even sure if something is bogus there), and if it
makes a difference whether you have an exploded dir vs. .war file, how
timestamps influence it, etc.

If that didn't help, try to config the context directly in your
server.xml just to be sure.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message