Eclipse IDE: Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules
In project location open the “.settings” folder,then open below xml file in notepad “org.eclipse.wst.common.project.facet.core.xml“, and
change the version of
facet="jst.web"
to 2.4 or 2.5.before Change
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Pivotal tc Server Developer Edition (Runtime) v3.0"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
After change.
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Pivotal tc Server Developer Edition (Runtime) v3.0"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
No comments:
Post a Comment