MyEclipse部署项目出错:Deployment is out of date due to changes in the

这几天自己在学习Java EE方面的知识,开发环境为MyEclipse 2014,JDK8,Tomcat 8.0.3,在完成一个项目以后,就需要把该项目部署到Tomcat中,然而博主在部署的时候出现了下图所示的问题

MyEclipse部署项目出错:Deployment is out of date due to changes in the


部署状态中显示如下语句:

Deployment is out of date due to changes in the underlying project contents. You'll need to manually 'Redeploy' the project to update the deployed archive.

博主在查阅了大量相关资料以后也没能找到解决办法,最后是在一个国外的问答网站上找到的一点方向

http://www.experts-exchange.com/questions/21812263/I-am-not-able-to-deploy-a-webproject-developed-using-myeclipse-to-a-tomcat-server.html

MyEclipse部署项目出错:Deployment is out of date due to changes in the


上图的答主说的是把我们已经完成的项目用WAR格式导出到tomcat安装目录下的webapps目录下,然后重启tomcat服务器,于是我按这位答主的建议,把项目导出

导出的步骤为:

1.右键单击项目,选择Export -> WAR file,弹出以下界面

MyEclipse部署项目出错:Deployment is out of date due to changes in the


2.点击Browse按钮,定位到tomcat安装目录下的webapps目录

MyEclipse部署项目出错:Deployment is out of date due to changes in the


3.点击保存,弹出以下对话框

MyEclipse部署项目出错:Deployment is out of date due to changes in the


系统提示没有权限,这时候博主就在想是不是因为MyEclipse的权限不够,因为部署项目时候需要将项目文件写入系统盘的文件夹中,而系统盘的写入有时候需要管理员权限,所以我大胆猜测一开始没有部署成功很有可能是因为权限不够,因此,这个时候的解决方法变得很简单:

==》重点:

将MyEclipse以管理员身份运行!


运行以后然后试着部署项目,成功!如下图!

MyEclipse部署项目出错:Deployment is out of date due to changes in the


至此,困扰我多日的部署问题终于得到了完美的解决,因此写下这篇博客来帮助那些仍然没有解决问题的开发者们,仅作为抛砖引玉之用,因为部署不成功还有可能是其他的原因,遇到问题还是需要多搜索,总会有线索的!