I am deploying apps using the Tomcat Manager interface. Tomcat 8.0.12 on Linux.
I am setting the parameters: path=/My_Application context=/path/to/my/context.xml war=/path/to/my/APP.war update=true This produces the log: <http request starts> 24-Sep-2014 16:52:35.933 INFO [http-nio-443-exec-17] org.apache.catalina.startup.HostConfig.reload Reloading context [/My_Application] 24-Sep-2014 16:52:35.933 INFO [http-nio-443-exec-17] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/My_Application] has started 24-Sep-2014 16:52:45.050 INFO [http-nio-443-exec-17] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/My_Application] is completed <http request returns> 24-Sep-2014 16:55:48.359 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/My_Application] 24-Sep-2014 16:55:49.861 INFO [localhost-startStop-4] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /usr/local/apache-tomcat-8.0.12/conf/Catalina/localhost/My_Application.xml 24-Sep-2014 16:55:58.143 INFO [localhost-startStop-4] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /usr/local/apache-tomcat-8.0.12/conf/Catalina/localhost/My_Application.xml has finished in 8,282 ms My app is already deployed, which triggers HostConfig.check(name), and then checkResources(app). Tomcat takes the WAR branch ( resource.getName() ... endsWith(".war") , and the app is reloaded. The context.xml was also updated by the manager, but the app.redeployResources map is only updated with the WAR (due to the return statement in checkResources). Moments later, a periodic lifecycle event fires, and HostConfig.check() triggers a redeployment on the conf/Catalina/localhost/My_Application.xml resource. I have temporarily worked around the issue by disabling autoDeploy in server.xml, but is this a bug, or a misconfiguration on my part? It seems like checkResources could automatically update app.redeployResources entries which are older than the resource being updated, or maybe even the current time at the start of the checkResources call. -- *Austin Jones* Senior Designer *(619) 819-8844 x1040 Office* *(619) 819-8840 Fax* *3131 Camino Del Rio North, Suite 1500San Diego, CA 92108* [image: Avadyne Health] http://www.avadynehealth.com Benchmark Revenue Management has merged with Avadyne Health! Visit our website to learn more about this exciting synthesis, bringing technology-enabled services to healthcare revenue cycle management. *CONFIDENTIALITY NOTICE: This e-mail communication, including any attachments, is covered by the Electronic Communication Privacy Act of 1986 (18 U.S.C. sections 2510-21) and may contain information protected by the federal regulations under the Health Insurance Portability and Accountability Act of 1996 (45 C. F. R. Parts 160-164) or other confidential information. If you are not the intended recipient (or authorized to receive for the recipient), you are hereby notified that any review, disclosure, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete or destroy all copies of this communication and any attachments.*