How to prevent file locking when undeploying a Tomcat web app?

后端 未结 4 1393
失恋的感觉
失恋的感觉 2020-12-12 10:39

I am using the manager app in tomcat 7, and i am unable to undeploy an application completely.

It says FAIL - Unable to delete [F:\\apache-tomcat-7.0.33\\weba

4条回答
  •  温柔的废话
    2020-12-12 11:14

    This is one of the common issues with tomcat. Tomcat server catches hold of the resources on startup and deploys it. While undeploying, some resource would still be in use by tomcat. It would not yet have released the resource, but at the same time, another thread in tomcat would try to cleanup the same resources. Hence, the deletion of those resources would fail. One best way is to clean up the application's root directory in webapps manually.

提交回复
热议问题