我正在尝试运行网络应用程序。一开始一切顺利,但我不得不从项目文件夹中删除一些 jar 。我没有使用 Eclipse 删除 jar 。所以,我开始遇到这些错误:
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.
我试图删除我的整个项目并重新编码。但它不起作用。我还删除了 Tomcat 服务器,但它再次不起作用。然后我意识到要“修复”这个问题我必须删除这个文件夹:
C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF。
并且清理服务器和项目。但是当我关闭 eclipse 并再次打开时,我得到了同样的错误,然后我必须执行这个过程。
这里有人知道如何修复这种 tomcat 错误吗?
最佳答案
只需删除服务器,然后重新添加,然后重新启动您的 eclipse。它对我有用。
关于java - 无法删除/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/appname/WEB-INF/lib。可能被另一个进程锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21112703/