The server does not support version 3.0 of the J2EE Web module specification

1.错误:

在eclipse中使用run->run on server的时候,选择tomcat6会报错误:The server does not support version 3.0 of the J2EE Web module specification

2.原因:

Tomcat 6.0最多支持Servlet 2.5,而现在要import的项目是3.0版本的。

3.解决方法:

在项目根目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下:

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
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.6"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
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
<installed facet="jst.web" version="3.0"/>
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
<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,布布扣,bubuko.com

The server does not support version 3.0 of the J2EE Web module specification

(0)
(0)
   
举报
评论 一句话评论(0
上一篇:ASP.NET TextBox 当鼠标点击后清空默认提示文字


下一篇:推荐一个不错的抓取匹配源码的正则表达式网站