Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undeploy web application from tomcat doesn't remove the deployed directory

I am using tomcat manager commands to deploy and undeploy web applications on a tomcat server. The problem is when I try to undeploy a web application, it does remove the .war file from the webapps directory but the exploded directory doesn't get removed (the WEB-INF/lib folder), neither from the List Applications in the tomcat mananger.

I am on Windows and I am using Tomcat 6.0.20.

Note: When I tried to delete the directory manually it gave me an error saying that the file is being used by another program.

like image 660
Shahe Avatar asked Dec 23 '13 12:12

Shahe


1 Answers

I found the solution, just put this in your context.xml file in your_tomcat_home_directory/Config:

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

Everything works fine.

like image 62
Shahe Avatar answered Oct 12 '22 23:10

Shahe