How to save xml configuration when redistributing with update?

I am using tomcat manager to deploy my military files. To update the 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 xml with the configuration (in Catalina / localhost / example.xml) is erased.

How can I save it?

+3
source share
1 answer

Put the configuration in your webapp META-INF/context.xml, and tomcat will take care of everyone else.

0
source

Source: https://habr.com/ru/post/1790930/


All Articles