01/09/2007

Tomcat jar locking

Tomcat locks some jar files

Symptom
In Tomcat server, when I undeploy my web application, there are still some jar files locked by the server.

Solution
Use the following parameters: antiJARLocking and antiResourceLocking in the context configuration.
Example:
<!-- The contents of this file will be loaded for each web application -->
<Context antiJarLocking="true" antiResourceLocking="true">

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

</Context>


Link
Tomcat configuration context

Aucun commentaire: