简体   繁体   English

无法在 Tomcat 上取消部署应用程序

[英]Cannot undeploy application on Tomcat

I'm trying to undeploy an application in Tomcat manager web UI but not success.我正在尝试取消部署 Tomcat 管理器 web UI 中的应用程序但未成功。

I've deleted all.war files and folders in both webapps and work/catalina but when I list application, I still can see it on the list.我已经删除了 webapps 和 work/catalina 中的 all.war 文件和文件夹,但是当我列出应用程序时,我仍然可以在列表中看到它。 Tomcat say "OK" but the application cannot be remove. Tomcat 说“确定”但应用程序无法删除。 Can someone tell me why, please?有人可以告诉我为什么吗?

You have a form of memory leak.你有一个 memory 泄漏的形式。 The application (or possibly a library it is using) has opened a file but failed to close it.应用程序(或者可能是它正在使用的库)打开了一个文件但未能关闭它。 The open file(s) and any directories that contain it/them can not be deleted.无法删除打开的文件和包含它/它们的任何目录。 Tomcat therefore auto deploys them as a new web application on the next auto deploy check. Tomcat 因此在下一次自动部署检查时将它们自动部署为新的 web 应用程序。

Work-arounds / solutions depend on exact Tomcat version (which you failed to state in your question).变通方法/解决方案取决于确切的 Tomcat 版本(您在问题中未能达到 state)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM