1 Reply Latest reply on Apr 10, 2013 3:13 PM by ppitonak

    Richfaces 4.2.2 with Maven

    sincanvin

      Hi,

       

      We are using Richfaces 4.2.2 with Maven. Initially, we were not able to render the richfaces components on the pages so added the following dependencies but getting one exception on server start up. We are able to do mvn clean install.

       

      <dependency>
      <groupId>org.richfaces.ui</groupId>
      <artifactId>richfaces-components-ui</artifactId>
      <version>4.2.2.Final</version>
      </dependency>
                 
        
      <dependency>
      <groupId>org.richfaces.ui</groupId>
      <artifactId>richfaces-components-api</artifactId>
      <version>4.2.2.Final</version>
      </dependency>
                 

      <dependency>
      <groupId>org.richfaces.core</groupId>
      <artifactId>richfaces-core-api</artifactId>
      <version>4.2.2.Final</version>
      </dependency>
                 

      <dependency>
      <groupId>org.richfaces.core</groupId>
      <artifactId>richfaces-core-impl</artifactId>
      <version>4.2.2.Final</version>
      </dependency>
                    

       

      Exception we are getting is

       

      Module named 'rsc-ear' failed to deploy. See Error Log view for more detail.

      <Apr 10, 2013 11:25:50 AM EDT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'rsc-ear'.>
      <Apr 10, 2013 11:25:50 AM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'rsc-ear'.>
      <Apr 10, 2013 11:25:50 AM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
      weblogic.application.ModuleException:
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.DateTimeConverter
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
      at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72)
      at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:245)
      at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:231)
      at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:53)
      Truncated. see log file for complete stacktrace

       

      Can you pl. guide and help resolve the issue? This is really urgent. Do we need any other dependencies to render components?

       

      Thanks for you help.

        • 1. Re: Richfaces 4.2.2 with Maven
          ppitonak

          Hi,

           

          where are you deploying? If it's a Java EE container, make sure that you don't package JSF implementation in your WAR.

           

          Unrelated to your issue - I suggest you to upgrade to RichFaces 4.3.1.Final.

           

          Regards,

          Palo