tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Burbidge <>
Subject Re: Hot deploy deletes my context file...
Date Fri, 02 May 2008 12:32:58 GMT
Version 5.5.6

I use the follow target in my ant build script:

	<property name="deploy.dir" value="${catalina.home}/webapps" />
	<target name="deploywar">
		<echo message="copying ${war.file} to ${deploy.dir}" />
		<copy file="${war.file}" todir="${deploy.dir}" />

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.


On May 1, 2008, at 11:14 PM, Mark Thomas wrote:

> Michael Burbidge wrote:
>> I have a context file that is associated with my web application.  
>> My context file is in $CATALINA_HOME/conf/Catalina/localhost/ 
>> mytest.xml. My war is called mytest.war and my servlet is mytest.
>> If I deploy my war with tomcat shutdow my context file is not  
>> deleted on startup and the resources declared in the context work  
>> properly. But if I deploy a new war while tomcat is running,  
>> mytest.xml is deleted and of course the resources defined in it are  
>> not available.
>> Can anyone give my some guidance?
> Tomcat version?
> Exactly what steps do you take deploy the new war?
> Mark
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message