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

后端 未结 4 1392
失恋的感觉
失恋的感觉 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:06

    This is very common in Windows environment but there is a solution via the antiResourceLocking context property:

    Open context.xml from /tomcat/conf folder and modify the context to match this :

    
    

    Edit: Updated properties following @JanM comment. Previously it also contained 'antiJARLocking'

提交回复
热议问题