The server does not support edition 3.0 of the J2EE Web module specification

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.