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

标签 java eclipse tomcat locked-files

我正在尝试运行网络应用程序。一开始一切顺利,但我不得不从项目文件夹中删除一些 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/

相关文章:

java - 将 char 返回到 main 方法

java - 使用自签名证书时 Tomcat 服务器未发生 SSL/TLS 通信

java - JTable 拉伸(stretch)到 ScrollPane 的大小

java - 以编程方式创建的 TextView 未显示

java - 你用 Object.clone() 做什么?

java - 使用 Java Buildpack 将工件上传到 bluemix 时出现错误 "Authentication error. Please log back to authenticate"

java - 无法在 tomcat 服务器上运行简单的 Servlet。获取 HTTP 状态 500 - 实例化 servlet 类 com.main.Hello 错误时出错

java - Dialogflow v2 Java 客户端库使用 Spring Boot 检测 Intent : No DesignTimeAgent found for project

c++ - 在不创建项目的情况下使用eclipse CDT

eclipse - 在 Eclipse 中突出显示 .tpl 语法