recently, when playing with Eclipse, new projects are all greedy new, with the latest version, in the Dynamic Web Module version column selected the latest version 3.0, the project was the time when the error occurred, the Internet to see other netizensblog, solve the problem, the method is now posted here, hoping to help others:
With search, you find a file named Org.eclipse.wst.common.project.facet.core.xml in the. Setting folder under Project, which is configured with various version information. At this point, the problem is solved by modifying the file according to the native configuration.
<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<runtime name= "Apache Tomcat v5.5"/>
<fixed facet= "Jst.web"/>
<fixed facet= "Jst.java"/>
<installed facet= "Jst.java" version= "5.0"/>
<installed facet= "Jst.web" version= "2.4"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>
"
for bugs like me, you can download Tomcat 7. 0 solve, but I am too troublesome, simply in the configuration file <installed facet= "Jst.web" version= "3.0"/> To lower version version= "2.5" just fine
Tomcat version 6.0 only supports EE 1.2, 1.3, 1.4, and Java EE 5 Web Modules