Tomcat 7: avoid automatic restart when change context.xml

前端 未结 1 950
有刺的猬
有刺的猬 2021-02-07 07:28

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

相关标签:
1条回答
  • 2021-02-07 07:56

    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

    0 讨论(0)
提交回复
热议问题