首先我猜测可能是因为没有,web app libraies 原因,呵呵不是哦,
在项目中找到.mymetadata文件,再添加下面红色的这段代码,注意 context-root 的值是项目名称。就只要加上这段代码,再把编译器,重启一下,就可以部署项目了。
<?xml version="1.0" encoding="UTF-8"?>
<project-moduletype="WEB"
name="Gofgy"
id="myeclipse.1447743399449"
context-root="/Gofgy"
j2ee-spec="1.4"
archive="Gofgy.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>