Cannot change version of the project facet Dynamic Web Module to 3.1.

Source: Internet
Author: User

The root cause of this problem is that the version of the web is also projcect with the inconsistent version of facet configuration!!

1. Modify the version of Project face

Here, we select 2.5, open the. settings\org.eclipse.wst.common.project.facet.core.xml file with Notepad, locate the "Installed facet=" Jst.web ", We'll change the value of version to 2.5.

2. Modify the version of Web. xml

Similarly, in order to ensure the consistency of the version, here also must be 2.5, we open web-inf\web.xml with Notepad, will "Web-app" node http://java.sun.com/xml/ns/javaee/web-app_#_#. The XSD is changed to http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd, and the value of version is changed to "2.5"

3, update maven

Right-click the project and then execute the right-click menu of Maven---Update project ... command to wait until the progress bar on the right bottom of eclipse disappears, and the MAVEN error message disappears.

Note: Here said 2.5 is not a random value, if you are using TOMCAT7 or lower version, then you can only use the version below 3.0, otherwise you are unable to add items to tomcat, even if the blind churn added, it is not normal to start Tomcat. In addition, fill in this version of the Http://java.sun.com/xml/ns/javaee/web-app_#_#.xsd file must be able to find the real, otherwise it is not possible, such as you write Http://java.sun.com/xml/ns /javaee/web-app_2_3.xsd, you can't actually find it.

Cannot change version of the project facet Dynamic Web Module to 3.1.

Related Article

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.