Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Redeploying war file kills context xml

Aust, Christian

2006-03-21

Replies:

Hi,

I'm using Tomcat 5.5.15 on Windows 2003 w/ SUN JDK 1.5. Inside a virtual host, I've configured a context to define some JNDI datasources. Therefore I've written a context XML file in CATALINA_BASE/conf/Catalina/host/myapp.xml

The app is deployed using a war file HOST_BASE/myapp.war and expanded to HOST_BASE/myapp automatically. It all works pretty well until I redeploy the war file:

Uploading the war takes a little while. While I'm still uploading, tomcat starts to redeploy the unfinished war file and _deletes_ the myapp.xml file as well. When the upload is finished, the war file is complete, the directory HOST_BASE/myapp/ is incomplete and the context XML file CATALINA_BASE/conf/Catalina/host/myapp.xml is gone.

I've searched the docs, googled the web, tried everything... nothing. How do I need to configure this context so that my custom myapp.xml file stays in place during a redeploy? Is there a chance to redeploy even over a slow link without tomcat trying to expand an unfinished archive?

Kinnd regards / Mit freundlichen Grüßen

Christian Aust
Development mySAP Human Resources

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service.
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.