Run on server error: the server does not support version 3.0 of the J2EE Web module specification

Source: Internet
Author: User

When developing a struts2 project using eclipse today, right-click Run on server and the following message appears:

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

 

Tomcat 6.0 is used to create this project. JDK 1.6 is used, while Tomcat 6.0 supports servlet 2.5.

Find a solution on the Internet and share the following:

 

There is. SettingsFolder, which hasOrg. Eclipse. WST. Common. Project. facet. Core. xmlFile, the content is as follows:

<? XML version = "1.0" encoding = "UTF-8"?>
<Faceted-Project>
<Fixed facet = "JST. Web"/>
<Fixed facet = "WST. jsdt. Web"/>
<Fixed facet = "Java"/>
<Installed facet = "Java" version = "1.5" type = "codeph" text = "/codeph"/>
<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
<Installed facet = "JST. Web" version = "2.5" type = "regxph" text = "yourobjectname"/>

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.