Maven-web Project just created error: Description Resource Path location Type JavaServer Faces 2.2 can is installed:one or more cons

Source: Internet
Author: User


Solve:

Problem Description: The MAVEN project appears with the following error

JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer. Maven Java EE Configuration problem
JavaServer Faces 2.0 can not is installed:one or more constraints has not been satisfied. Line 1 Maven Java EE Configuration problem

Solution:

First, add the Web. xml file under WebApp

1  <?XML version= "1.0" encoding= "UTF-8"?>2   <!--<! DOCTYPE Web-app3 Public "-//sun Microsystems, INC.//DTD Web application 2.3//en"4 "HTTP://JAVA.SUN.COM/DTD/WEB-APP_2_3.DTD" >

Replaced by


1 <Web-appxmlns= "Http://java.sun.com/xml/ns/javaee"2 Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"3 xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee4 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "5 version= "3.0">6     <Display-name>Archetype Created Web Application</Display-name>7 </Web-app>

Then, turn off eclipse, change the. Settings\org.eclipse.wst.common.project.facet.core.xml under Project, change the version to 3.0, and it will be <installed facet= " Jst.web "version=" 3.0 "/>, and then start Eclipse.

Finally, in the problems view error prompt to select the Quick Fix, and then follow the prompts to determine the OK; or, right-click the item->maven->update Project

=====================

At this point, the problem is generally resolved. If this does not work, try adding the following code to the Pom.xml:


1     <Build>2         <Finalname>Chm</Finalname>3         <Plugins>4             <plugin>5                 <Artifactid>Maven-compiler-plugin</Artifactid>6                 <version>2.0.2</version>7                 <Configuration>8                     <Source>1.6</Source>9                     <Target>1.6</Target>Ten                 </Configuration> One             </plugin> A         </Plugins> -     </Build>


Source: https://www.cnblogs.com/jebeljebel/p/4421098.html

Maven-web Project just created error: Description Resource Path location Type JavaServer Faces 2.2 can is installed:one or more cons

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.