项目部署到Tomcat报错

时间:2022-04-30 02:02:48

1、今天晚上,我想把dojo项目部署到Tomcat中,结果发现部署不了,Tomcat报错。而且,这个错误白天时也碰到了。

错误具体详细如下:

Publishing failed with multiple errors
Could not delete D:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/VoteSystem/WEB-INF/lib. May be locked by another process.
Could not delete D:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/VoteSystem/WEB-INF. May be locked by another process.

截图如下:

项目部署到Tomcat报错

2、错误原因

由于之前部署了一个项目到Tomcat中,后来换了一个项目部署,原来项目的WEB-INF没有删除,导致出现这种错误

项目部署到Tomcat报错

删除了VoteSystem之后,Tomcat正常启动