How to prevent file locking when undeploying a Tomcat web app?
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 : <Context antiResourceLocking=”true”> Edit: Updated properties following @JanM comment. Previously it also contained ‘antiJARLocking’