tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Hot deploy deletes my context file...
Date Fri, 02 May 2008 18:27:48 GMT
Robert Koberg wrote:
> On Fri, 2008-05-02 at 12:31 -0400, Mark H. Wood wrote:
>> On Fri, May 02, 2008 at 05:32:58AM -0700, Michael Burbidge wrote:
>>> By experimenting from the shell copying files I can see what Tomcat is 
>>> doing. I think that it deletes associated contexts whenever an application 
>>> is undeployed by deleting the .war file.
>> I think you are right.  This drove me crazy for a while.  Eventually I
>> began keeping the .war files *out* of /webapps and I haven't seen this
>> problem for a while.  You'll need to add the docBase attribute to the
>> Context to point to such an "external" webapp.
> (Using the 6x binary distro)
> I have a webapp outside of tomcat/webapps and the context file
> ($tomcat/conf/Catalina/localhost/ROOT.xml) gets deleted if tomcat is
> running and I delete the entire webapp directory.
> So...

Turn off autoDeploy for the host. You might need to do a reload after 
copying the new file across.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message