The server does not support version 3.0 of the J2EE Web module specification. 错误解决

开发SpringMVC项目的时候,运用的Maven的骨架生成,准备部署到Tomcat,但是在选择run on server的时候报错:
The server does not support version 3.0 of the J2EE Web module specification.
错误意思是服务器不支持3.0的版本的项目,遇到这种情况只需要修改一下项目的版本就可以了!

在项目根目录下的setting文件夹中有这么一个文件org.eclipse.wst.common.project.facet.core.xml
    
 <?xml version="1.0" encoding="UTF-8"?> 
<faceted-project>
  <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>
   
      可以看到项目中的  <installed facet="jst.web" version="3.0"/>
     
只需要改成2.5即可  <installed facet="jst.web" version="2.5"/>

posted on 2012-09-11 15:25 Nirvana reborn 阅读(1370) 评论(0)  编辑  收藏 所属分类: ★开发经验


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年9月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

导航

统计

公告

我好喜欢它,
我的 QQ 66013804
我想做技术流,可是我很懒,
博客新地址:<a href="http://cobaya.cn/" >

随笔分类(19)

文章档案(1)

博主链接

最新评论

阅读排行榜