eclipse Tomcat项目清理报错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6058558/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:19:36  来源:igfitidea点击:

Tomcat project cleaning error

eclipsetomcat

提问by roshanK

When I try to clean the project from tomcat. I'm getting this error:

当我尝试从 tomcat 清理项目时。我收到此错误:

Could not delete <file name>. May be locked by another process.

无法删除 <文件名>。可能被另一个进程锁定。

Is there any way to counter this problem?

有什么办法可以解决这个问题吗?

回答by JW.

First of all, try to just restarttomcat.

首先,尝试重启tomcat。

Then, try to cleaneverything:

然后,尝试清理所有内容:

  • Clean the Tomcat server: in Eclipse, right click on Tomcat vX.Y Server > Clean.
  • Clean the project: menu Project > Clean.
  • Clean the resource of the server: click the ? next to Tomcat vX.Y Server, underneath it your project is displayed, right click it and select "Clean Module Work Directory..."
  • 清理 Tomcat 服务器:在 Eclipse 中,右键单击Tomcat vX.Y Server > Clean
  • 清理项目: menu Project > Clean
  • 清理服务器资源:点击?在 旁边Tomcat vX.Y Server,在它下面显示您的项目,右键单击它并选择“清理模块工作目录...”

You can also try to start the server in Debug mode: right click Tomcat vX.Y Server > Debug.

您也可以尝试在调试模式下启动服务器:右键单击Tomcat vX.Y Server > Debug

回答by Ganesh Giri

You just try to clean your tomcat server .

您只需尝试清理您的 tomcat 服务器。

  • Go to tomcat server properties >switch to location >apply
  • Then clean your tomcat directory .
  • Clean Tomcat
  • 转到 tomcat 服务器属性>切换到位置>应用
  • 然后清理你的 tomcat 目录。
  • 清洁 Tomcat

Its work for me

它对我有用

回答by annoyed

The message is good, you have another process/application currently using the resources eclipse is trying to clean. If you're on linux, you can use lsof to find it. On windows, you have to guess or go through all applications currently opened.

该消息很好,您有另一个进程/应用程序当前正在使用 eclipse 试图清理的资源。如果您使用的是 linux,则可以使用 lsof 找到它。在 Windows 上,您必须猜测或浏览当前打开的所有应用程序。