The server does not support edition 3.0 of the J2EE Web module specification
The server does not support edition 3.0 of the J2EE Web module specification
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:
Copy code
<? 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>
Copy code
Set
<Installed facet = "jst. web" version = "3.0" type = "regxph" text = "yourobjectname"/>
Change
<Installed facet = "jst. web" version = "2.5" type = "regxph" text = "yourobjectname"/>
You can.