简体   繁体   English

无法在Tomcat 7中取消部署Web应用程序

[英]Cannot Undeploy a web-app in Tomcat 7

I am using the manager app in tomcat 7, and i am unable to undeploy an application completely. 我正在使用tomcat 7中的管理器应用程序,但无法完全取消部署应用程序。

It says FAIL - Unable to delete [F:\\apache-tomcat-7.0.33\\webapps\\balaji]. 它说失败-无法删除[F:\\ apache-tomcat-7.0.33 \\ webapps \\ balaji]。 The continued presence of this file may cause problems. 该文件的继续存在可能会导致问题。

I read somewhere its because of some phenomenon called memory leak , and if we fix it the issue will be solved. 我在某处读到它是因为某种称为内存泄漏的现象,如果我们修复它,该问题将得到解决。

From existing solutions found on SO, I added the below in context.xml & restarted the server but it didn't worked. 从SO上现有的解决方案中,我在context.xml中添加了以下内容,并重新启动了服务器,但没有成功。

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

I am still getting FAIL error. 我仍然收到失败错误。 There is another solution on SO to remove log4j. SO上还有另一种解决方案,可以删除log4j。 I didn't found log4j anywhere in my tomcat folder. 我在tomcat文件夹中的任何地方都找不到log4j。

Could anyone suggest what else to check for? 有人可以建议要检查的东西吗? Where should I look for log4j, will removing it impact anything else? 我应该在哪里寻找log4j,将其删除会不会有其他影响?

Maybe you have a different kind of log files in the application folder? 也许应用程序文件夹中有其他类型的日志文件? Maybe this application processes some files in that folder? 也许此应用程序处理了该文件夹中的某些文件? Or holds system resources as a database or libraries. 或者将系统资源保存为数据库或库。 The main problem is probably that the application thread is still running. 主要问题可能是应用程序线程仍在运行。

Are you using .war file? 您正在使用.war文件吗? If you delete a .war file from the applications folder Tomcat should attempt to undeploy the application. 如果从应用程序文件夹中删除.war文件,则Tomcat应该尝试取消部署该应用程序。

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

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