When I edit the global conf/context.xml of my Tomcat 7.0.34 the server seems to restart automatically. I want to avoid the AUTOMATIC restart, the server should run with the "old" configuration until I restart it by hand.
So my question is: How to avoid the AUTOMATIC restart when I change the global conf/context.xml in Tomcat 7.0.34?
According to Automatic Application Deployment, the application will be redeployed when changes are detected
Updating a context file will trigger an undeploy of the application with the removal of any associated work directory. Any current user sessions will not be persisted. The application will be redeployed the next time the auto deployer checks for changes.
To stop this functionality the autodeploy flag must be set to false:
This flag value indicates if Tomcat should check periodically for new or updated web applications while Tomcat is running. If true, Tomcat periodically checks the appBase and $CATALINA_BASE/conf/[engine_name]/[host_name] directories and deploys any new web applications or context XML descriptors found.
Alternatively, you can set the deployIgnore flag with a regular expression defining which applications should be ignored from automatic deployment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With