title: JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
body: <p>I tried few things, but still this problem persists. I am using Eclipse Kepler. I get following error on importing maven project</p>
  
  <blockquote>
    <p>JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied</p>
    
    <p>JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer</p>
  </blockquote>
  
  <p>1) I tried few things as mentioned in <a href="https://stackoverflow.com/questions/15115009/maven-java-ee-configuration-marker-with-java-server-faces-1-2">Maven Java EE Configuration Marker with Java Server Faces 1.2</a>, but no luck.
  2)Also I went into .settings and modified org.eclipse.wst.common.project.facet.core.xml and modified jst.web to point to 2.5 or 3.0 version; but I get some other errors.</p>
  
  <p>I am trying to make Sencha GXT examples work in maven/eclipse build based on <a href="http://neiliscoding.blogspot.ie/2012/05/how-to-setup-examples-for-use-in-gxt-3.html" rel="noreferrer">http://neiliscoding.blogspot.ie/2012/05/how-to-setup-examples-for-use-in-gxt-3.html</a> and having this javaserver faces problem in eclipse. 
  Here is my pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
  &lt;!-- POM file generated with GWT webAppCreator --&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
      &lt;artifactId&gt;xx&lt;/artifactId&gt;
      &lt;groupId&gt;ss&lt;/groupId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;guis&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  
  &lt;name&gt;GWT Maven Archetype&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;!-- Convenience property to set the GWT version --&gt;
      &lt;gwtVersion&gt;2.5.1&lt;/gwtVersion&gt;
      &lt;!-- GWT needs at least java 1.5 --&gt;
      &lt;webappDirectory&gt;${project.build.directory}/${project.build.finalName}&lt;/webappDirectory&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt.inject&lt;/groupId&gt;
          &lt;artifactId&gt;gin&lt;/artifactId&gt;
          &lt;version&gt;2.1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax&lt;/groupId&gt;
          &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
          &lt;version&gt;7.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-servlet&lt;/artifactId&gt;
          &lt;version&gt;${gwtVersion}&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
          &lt;version&gt;${gwtVersion}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-dev&lt;/artifactId&gt;
          &lt;version&gt;${gwtVersion}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.7&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.GA&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.GA&lt;/version&gt;
          &lt;classifier&gt;sources&lt;/classifier&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sencha.gxt&lt;/groupId&gt;
          &lt;artifactId&gt;gxt-chart&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sencha.gxt&lt;/groupId&gt;
          &lt;artifactId&gt;gxt&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sencha.gxt&lt;/groupId&gt;
          &lt;artifactId&gt;uibinder-bridge&lt;/artifactId&gt;
          &lt;version&gt;2.4.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;!-- Generate compiled stuff in the folder used for developing mode --&gt;
      &lt;outputDirectory&gt;${webappDirectory}/WEB-INF/classes&lt;/outputDirectory&gt;
  
      &lt;plugins&gt;
  
          &lt;!-- GWT Maven Plugin --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;compile&lt;/goal&gt;
                          &lt;goal&gt;test&lt;/goal&gt;
                          &lt;!-- &lt;goal&gt;i18n&lt;/goal&gt; --&gt;
                          &lt;goal&gt;generateAsync&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                  documentation at codehaus.org --&gt;
              &lt;configuration&gt;
                  &lt;runTarget&gt;guis.html&lt;/runTarget&gt;
                  &lt;hostedWebapp&gt;${webappDirectory}&lt;/hostedWebapp&gt;
                  &lt;i18nMessagesBundle&gt;com.harmonia.client.Messages&lt;/i18nMessagesBundle&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;!-- Copy static web files before executing gwt:run --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;compile&lt;/phase&gt;
                      &lt;!-- &lt;goals&gt; &lt;goal&gt;exploded&lt;/goal&gt; &lt;/goals&gt; --&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;webappDirectory&gt;${webappDirectory}&lt;/webappDirectory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my web.xml file </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;!-- &lt;!DOCTYPE web-app
   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
  
  &lt;web-app&gt; --&gt;
  
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
                      version="3.0"&gt;
  &lt;display-name&gt;GXT Created Web Application&lt;/display-name&gt;
  
  
  
  &lt;!-- Default page to serve --&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;guis.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p></p>
  
  <p>As you can see, I tried different dtds in above web.xml, but I still have the problem. Would appreciate any hints</p>