1. Error:
When running-> run on server is used in eclipse, selecting Tomcat 6 will report an error: the server does not support version 3.0 of the J2EE Web module specification
2. cause:
Tomcat 6.0 supports up to servlet 2.5, but now the project to be imported is version 3.0.
3. solution:
There is a. settings folder under the root directory of the Project, which contains an org. Eclipse. WST. Common. Project. facet. Core. xml file with the following content:
<? XML version = "1.0" encoding = "UTF-8" ?>
< Faceted-Project >
< Fixed Facet = "Java" />
< Fixed Facet = "JST. Web" />
< 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 >
Set
<InstalledFacet= "JST. Web"Version= "3.0"/>
Change
<InstalledFacet= "JST. Web"Version= "2.5"/>
You can.