现在的位置: 首页 > 综合 > 正文

XXX could not be redeployed because it could not be completely removed in the undeployment phase. th

2019年07月19日 ⁄ 综合 ⁄ 共 470字 ⁄ 字号 评论关闭

使用MyEclipse都会从新部署项目,点击Redeploy弹出一个错误:

XXX 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.

原因:1、缺少jar包。(以前的jar文件不存在了,但是项目信息中还有,即项目的.classpath文件中还有不存在的jar文件引用。)

     2、jar包重复。(引入了2次不同位置的相同的jar包)

解决方案:1、右键点项目名称-->Build Path-->Configure Build Path,把项目中缺少的jar包添加上,点"Add
External Jars"

 
    2、右键点项目名称-->Build Path-->Configure Build Path,把项目中重复的jar包Remove掉

抱歉!评论已关闭.