Search code examples
tomcatdeploymentwartomcat-manager

How to preserve xml configuration when redeploying using update?


I'm using tomcat manager to deploy my war files. To update a war I use the following url:

http://localhost:8080/manager/deploy?path=/example&war=file:/path/example.war&update=true

The problem is that using this, the xml with the configuration (under Catalina/localhost/example.xml), is erased.

How can I preserve it?


Solution

  • Place your configuration in your webapp's META-INF/context.xml and tomcat will take care of the rest.