MyEclipse 中再次部署项目的时候后报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28562059/article/details/52467608

MyEclipse 中再次部署项目的时候后报错


Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has locked one or more files.

to correct the deployment you will need to stop the server and then redeploy the project before restarting the server.



可能的原因是因为 项目中引用的jar文件有的不存在,但是项目信息中还留有这些jar包的信息。

解决的办法就是在MyEclipse中把项目中引用的jar文件重新加一遍就可以了 。

具体做法: 右键点项目名称,选择Properties,选择Java Build Path,选择Libraries,把所有项目中的jar都remove,然后再点"add jars",把项目中的jar文件都加进来, 或者是已经不存在的jar包全部移除(在对应的jar包后会显示MISSING ) ,然后再次部署就正常了。

猜你喜欢

转载自blog.csdn.net/qq_28562059/article/details/52467608
今日推荐