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.
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.
尝试停止Tomcatserver(-service),然后手动删除展开的目录,然后重新启动它。
I was on Windows using cygwin. Even after shutting down tomcat, I could not delete the web application folder - the command kept on returning "Device or resource busy". I noticed that the java process was still running even after I had shut down tomcat so I decided to kill it, and was able to manually delete the web application folder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.