tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: info regarding automatic restart of webapps when modifying $CATALINA_HOME/conf/web.xml
Date Fri, 16 Mar 2012 08:01:36 GMT
Mark DeSpain wrote:
> Greetings!
> Just trying to do some research regarding a behavior my team observed
> today.  We're using some revision of Tomcat 7.0... I don't recall the
> specific version, but I can look it up if it is relevant.
> Apparently when someone modifies $CATALINA_HOME/conf/web.xml, Tomcat will
> reload all web applications in the container.  Unfortunately for us, this
> wreaks havoc on our set of web applications since we've allowed them to
> express initialization dependencies between each other that are honored on
> startup (and other scenarios) but not this scenario.
> So, I'm looking for more information on how one might either disable this
> particular reload behavior or hook into that behavior so that we can ensure
> that dependencies are reinitialized accordingly.  Can someone point me in
> the right direction?  Either approach will work for us, but I'd be
> interested in knowing if there is indeed a hook we can tap into.  Any input
> is greatly appreciated.
Hi. I'm not a real specialist, but I'll try :
1) changing the behaviour regarding the default web.xml : I do not think that you can 
change this behaviour without triggering some other maybe undesirable side-effects (such 
as not reloading modified webapps automatically anymore)
2) hooks : you might want to look at this :

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

View raw message