Tomcat Hot Deploy not working

江枫思渺然 提交于 2019-12-04 12:01:32

问题


I'm having an issue hot deploying a new WAR on my Tomcat 6 server.

When I add in my new WAR I can see that Tomcat is attempting to deploy it. However, I believe the problem lies in undeploying the old war - the exploded war folder's contents are all deleted - except the WEB-INF folder.

If I stop the server, delete the WEB-INF folder and then start again, my war is deployed correctly.

Can anyone suggest anything which may be happening here?

Thanks.


回答1:


Found the solution, the problem lies in the fact that Windows locks the folder when Tomcat is running. To remove this locking, just edit context.xml in the Catalina Home, change

<context>

to:

<Context antiJARLocking="true" antiResourceLocking="true">


来源:https://stackoverflow.com/questions/1465422/tomcat-hot-deploy-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!