The server does not support version 3.1 of the JEE Web module specification.
在服务器Tomcat 7部署时,提示“The server does not support version 3.1 of the JEE Web module specification.”,即服务器不支持3.1版的JEE Web模块规范。
参考http://www.cnblogs.com/xwdreamer/archive/2011/12/09/2296913.html
打开项目根目录下.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="com.genuitec.runtime.generic.jee70"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="jst.web.jstl" version="1.2.2"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="me.hibernate" version="4.1"/>
</faceted-project>
把
<installed facet="jst.web" version="3.1"/>
改成
<installed facet="jst.web" version="3.0"/>
这样就可以了