您的位置:首页 > 编程语言 > Java开发

Eclipse-JEE解决Cannot change version of project facet Dynamic web module to 2.4

2016-03-22 13:44 489 查看
参考:http://blog.csdn.net/fuxiaohui/article/details/17496797

描述:之前用MyEclipse10创建的Maven工程,一直运行正常,但使用Eclipse-Java EE luna Service Release 2 (4.4.2)打开该工程时出现如下错误:

Cannot change version of project facet Dynamic web module to 2.4

解决方案:

将工程目录/.settings/org.eclipse.wst.common.project.facet.core.xml文件中的jst.web的version值从3.0改成2.4即可。

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="<span style="color:#ff0000;">2.4</span>"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="me.hibernate" version="4.1"/>
<installed facet="me.spring" version="3.1"/>
<installed facet="maven" version="1.0"/>
</faceted-project>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: