您的位置:首页 > 其它

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

2011-04-03 11:04 555 查看
报如下错误:The server does not support version 3.0 of the J2EE Web module specification
原来创建Test时用的是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>
把<installed facet="jst.web" version="3.0"/>改为 <installed facet="jst.web" version="2.5"/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐