MyEclipse 中再次部署專案的時候後報錯
阿新 • • 發佈:2018-12-22
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 ) ,然後再次部署就正常了。