eclipse - JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer -


i tried few things, still problem persists. using eclipse kepler. following error on importing maven project

javaserver faces 2.2 can not installed : 1 or more constraints have not been satisfied

javaserver faces 2.2 requires dynamic web module 2.5 or newer

1) tried few things mentioned in maven java ee configuration marker java server faces 1.2, no luck. 2)also went .settings , modified org.eclipse.wst.common.project.facet.core.xml , modified jst.web point 2.5 or 3.0 version; other errors.

i trying make sencha gxt examples work in maven/eclipse build based on http://neiliscoding.blogspot.ie/2012/05/how-to-setup-examples-for-use-in-gxt-3.html , having javaserver faces problem in eclipse. here pom.xml

<?xml version="1.0" encoding="utf-8"?> <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">  <!-- pom file generated gwt webappcreator --> <modelversion>4.0.0</modelversion> <parent>     <artifactid>xx</artifactid>     <groupid>ss</groupid>     <version>0.0.1-snapshot</version> </parent>  <artifactid>guis</artifactid> <packaging>war</packaging>  <name>gwt maven archetype</name>  <properties>     <!-- convenience property set gwt version -->     <gwtversion>2.5.1</gwtversion>     <!-- gwt needs @ least java 1.5 -->     <webappdirectory>${project.build.directory}/${project.build.finalname}</webappdirectory>     <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>  <dependencies>     <dependency>         <groupid>com.google.gwt.inject</groupid>         <artifactid>gin</artifactid>         <version>2.1.2</version>     </dependency>     <dependency>         <groupid>javax</groupid>         <artifactid>javaee-api</artifactid>         <version>7.0</version>     </dependency>      <dependency>         <groupid>com.google.gwt</groupid>         <artifactid>gwt-servlet</artifactid>         <version>${gwtversion}</version>         <scope>runtime</scope>     </dependency>     <dependency>         <groupid>com.google.gwt</groupid>         <artifactid>gwt-user</artifactid>         <version>${gwtversion}</version>         <scope>provided</scope>     </dependency>      <dependency>         <groupid>com.google.gwt</groupid>         <artifactid>gwt-dev</artifactid>         <version>${gwtversion}</version>         <scope>provided</scope>     </dependency>       <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.7</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>javax.validation</groupid>         <artifactid>validation-api</artifactid>         <version>1.0.0.ga</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>javax.validation</groupid>         <artifactid>validation-api</artifactid>         <version>1.0.0.ga</version>         <classifier>sources</classifier>         <scope>test</scope>     </dependency>     <dependency>         <groupid>com.sencha.gxt</groupid>         <artifactid>gxt-chart</artifactid>         <version>3.0.1</version>     </dependency>      <dependency>         <groupid>com.sencha.gxt</groupid>         <artifactid>gxt</artifactid>         <version>3.0.1</version>     </dependency>      <dependency>         <groupid>com.sencha.gxt</groupid>         <artifactid>uibinder-bridge</artifactid>         <version>2.4.0</version>     </dependency>    </dependencies>  <build>     <!-- generate compiled stuff in folder used developing mode -->     <outputdirectory>${webappdirectory}/web-inf/classes</outputdirectory>      <plugins>          <!-- gwt maven plugin -->         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>gwt-maven-plugin</artifactid>             <version>2.5.1</version>             <executions>                 <execution>                     <goals>                         <goal>compile</goal>                         <goal>test</goal>                         <!-- <goal>i18n</goal> -->                         <goal>generateasync</goal>                     </goals>                 </execution>             </executions>             <!-- plugin configuration. there many available options, see gwt-maven-plugin                  documentation @ codehaus.org -->             <configuration>                 <runtarget>guis.html</runtarget>                 <hostedwebapp>${webappdirectory}</hostedwebapp>                 <i18nmessagesbundle>com.harmonia.client.messages</i18nmessagesbundle>             </configuration>         </plugin>          <!-- copy static web files before executing gwt:run -->         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-war-plugin</artifactid>             <version>2.1.1</version>             <executions>                 <execution>                     <phase>compile</phase>                     <!-- <goals> <goal>exploded</goal> </goals> -->                 </execution>             </executions>             <configuration>                 <webappdirectory>${webappdirectory}</webappdirectory>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.2</version>             <configuration>                 <source>1.7</source>                 <target>1.7</target>             </configuration>         </plugin>     </plugins> </build> 

here web.xml file

 <?xml version="1.0" encoding="utf-8"?>   <!-- <!doctype web-app  public "-//sun microsystems, inc.//dtd web application 2.3//en"  "http://java.sun.com/dtd/web-app_2_3.dtd">  <web-app> -->  <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"> <display-name>gxt created web application</display-name>    <!-- default page serve --> <welcome-file-list>     <welcome-file>guis.html</welcome-file> </welcome-file-list> 

as can see, tried different dtds in above web.xml, still have problem. appreciate hints

your problem have marked web.xml being servlet 2.3 compliant (or perhaps not - not sure how doctype in comment interpreted)

 <?xml version="1.0" encoding="utf-8"?>   <!-- <!doctype web-app  public "-//sun microsystems, inc.//dtd web application 2.3//en"  "http://java.sun.com/dtd/web-app_2_3.dtd"> 

and need @ least servlet 2.5 compliant eclipse tooling work.

<?xml version="1.0" encoding="utf-8"?> <web-app version="2.5" 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_2_5.xsd"> 

(untested - copied http://javahowto.blogspot.dk/2009/10/sample-webxml-servlet-25.html)

you may need recreate eclipse project have changes picked up.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -