我正在尝试运行网络应用程序。一开始一切顺利,但我不得不从项目文件夹中删除一些罐子。我没有使用 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.
我试图删除我的整个项目并重新编码。但它不起作用。我还删除了 Tomcat 服务器,但它再次不起作用。然后我意识到要“修复”这个问题我必须删除这个文件夹:
C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF 。
并 清理 服务器和项目。但是当我关闭 eclipse 并再次打开时,我得到了同样的错误,然后我必须执行这个过程。
这里有人知道如何修复这种 tomcat 错误吗?
原文由 Murilo 发布,翻译遵循 CC BY-SA 4.0 许可协议
只需删除服务器然后再次添加,然后重新启动您的 eclipse。它对我有用。