无法删除/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/appname/WEB-INF/lib.可能被另一个进程锁定

Mur*_*ilo 8 java eclipse tomcat

我正在尝试运行一个Web应用程序.一开始它进展顺利,但我不得不从项目文件夹中删除一些罐子.我没有使用eclipse删除罐子.所以,我开始得到这些错误:

Publishing failed with multiple errors
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF/lib. May be locked by another process.
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF. May be locked by another process.
Run Code Online (Sandbox Code Playgroud)

我试图删除整个项目并再次编码.但它不起作用.我也删除了Tomcat服务器,但它又不起作用.然后我意识到要"修复"这个问题我必须删除这个文件夹:

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF.

清理服务器和项目.但是当我关闭eclipse并再次打开时,我得到同样的错误,那么我必须做这个过程.

这里的任何人都知道如何修复这种tomcat bug?

小智 9

只需删除服务器,然后重新添加,然后重新启动eclipse.它对我有用.


小智 8

关闭日食并转到下面的位置(取决于您的系统位置)

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/
Run Code Online (Sandbox Code Playgroud)

和删除tmp0目录现在启动eclipse,它将正常工作.


小智 2

我不知道这个问题的确切原因,但我通过重新启动系统解决了同样的问题。因此,重新启动一次系统,它可能会解决您的问题。