Run on Server报错:The server does not support version 3.0 of the J2EE Web module specification
2011-12-07 22:00
441 查看
今天用Eclipse开发Struts2的项目时,点击右键Run on Server时出现:
The server does not support version 3.0 of the J2EE Web module specification
创建这个项目时用的Tomcat 6.0 ,JDK的版本为1.6,而Tomcat 6.0 能支持的Servlet的版本为2.5.
在网上找到一个解决方法,分享如下:
在项目根目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.5"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
把<installedfacet="jst.web" version="3.0"/>改为
<installed facet="jst.web"version="2.5"/>
The server does not support version 3.0 of the J2EE Web module specification
创建这个项目时用的Tomcat 6.0 ,JDK的版本为1.6,而Tomcat 6.0 能支持的Servlet的版本为2.5.
在网上找到一个解决方法,分享如下:
在项目根目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.5"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
把<installedfacet="jst.web" version="3.0"/>改为
<installed facet="jst.web"version="2.5"/>
相关文章推荐
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- run on server的时候,报出The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- 关于The server does not support version 3.0 of the J2EE Web module specification.问题的解决方案
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification Eclipse的web项不支持tomcat6
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification
- The server does not support version 3.0 of the J2EE Web module specification