2 Replies Latest reply on Sep 18, 2008 10:51 AM by Ralph Soika

    How to setup a maven web module?

    Ralph Soika Apprentice

      Hi,

      I am sorry to ask such a beginner question but I did not find out how to setup a maven web module using richfaces :-(

      Currently I added the

      http://repository.jboss.com/maven2/

      repository into my setup.xml

      and added the following dependencies into my pom.xml

       <dependencies>
       <dependency>
       <groupId>javaee</groupId>
       <artifactId>javaee-api</artifactId>
       <version>5</version>
       <scope>provided</scope>
       </dependency>
       <dependency>
       <groupId>org.richfaces</groupId>
       <artifactId>richfaces</artifactId>
       <version>3.0.1</version>
       <exclusions>
       <exclusion>
       <groupId>org.ajax4jsf</groupId>
       <artifactId>ajax4jsf</artifactId>
       </exclusion>
       </exclusions>
       </dependency>
      
       <dependency>
       <groupId>org.ajax4jsf</groupId>
       <artifactId>ajax4jsf</artifactId>
       <version>1.1.1</version>
       </dependency>
       </dependencies>
      


      But I receife the following error

      [#|2008-09-18T00:14:19.204+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=3af28969-8564-4d13-8971-d4eb4a805e86;|StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: /echo.jsp(1,55) PWC6188: The absolute uri: http://richfaces.org/a4j cannot be resolved in either web.xml or the jar files deployed with this application
      


      I using glassfish server.

      I also followed this documentation:

      http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/GettingStarted.html#Installation

      Can anybody give me a hint what I did wrong or where I can find a short tutorial for maven developers how to use richfaces?

      Thanks for help

      ralph