MyEclipse导入项目后,部署到Tomacat服务器时,提示类似如下错误,试了好多网上的办法,都没能解决。最后,想到自己在删除Tomcat文件夹下的文件时,都需要管理员权限,是不是没有“以管理员身份”运行MyEclipse,导致MyEclipse没有管理员权限,才不能将项目文件写入到Tomcat的Webapp下呢? 于是,关闭MyEclipse,重新以管理员身份运行,点击部署,最终成功。。

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. 

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

相关文章: