XXX could not be redeployed because it could not be completely removed in the un

解决办法:

把项目中引用的jar文件重新加一遍就行了,基本原因就是以前的jar文件不存在了,但是项目信息中还有,即项目的.classpath文件中还有不存在的jar文件引用。

可以右键点项目名称,选择Properties,选择Java Build Path,选择Libraries,把所有项目中的jar都remove,然后再点"add jars",把项目中的jar文件都加进来,再次部署就正常了。

或者直接把想要jar包加进来,然后refresh一下,然后重新部署项目,启动,绝对能搞定!



Linxu上注意,读写权限以及tomcat所属权限。

chmod -R 777 tomcat
chown -R xxx:xxx tomcat

猜你喜欢

转载自fengshayage.iteye.com/blog/1868624
今日推荐