0 Replies Latest reply on Nov 27, 2014 9:22 AM by Marco Del Percio

    java.lang.IllegalArgumentException: Multiple entries with same key

    Marco Del Percio Newbie

      Hello,

       

      I was following the basic intructions to include RichFacse in my project. In my project I'm including the following jars

      cssparser-0.9.14.jar

      guava-18.0.jar

      richfaces-components-a4j-4.5.0.Final.jar

      richfaces-components-rich-4.5.0.Final.jar

      richfaces-core-4.5.0.Final.jar

      sac-1.3.jar

       

      Both in my War and in the Ear. If I deploy just the war everything works perfectly, however when I deploy the ear I'm getting the following error message and the project is unable to be deployed

       

      14:02:28,120 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Critical error during deployment: : java.lang.IllegalArgumentException: Multiple entries with same key: class javax.faces.convert.DateTimeConverter=org.richfaces.javascript.LibraryFunctionImplementation@43468f35 and class javax.faces.convert.DateTimeConverter=org.richfaces.javascript.LibraryFunctionImplementation@4d640314

        at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150) [guava-18.0.jar:]

        at com.google.common.collect.RegularImmutableMap.checkNoConflictInBucket(RegularImmutableMap.java:104) [guava-18.0.jar:]

        at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:70) [guava-18.0.jar:]

        at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:254) [guava-18.0.jar:]

        at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:75) [richfaces-components-rich-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:65) [richfaces-components-rich-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:60) [richfaces-components-rich-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:60) [richfaces-core-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:110) [richfaces-core-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:69) [richfaces-core-4.5.0.Final.jar:4.5.0.Final]

        at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:167) [richfaces-core-4.5.0.Final.jar:4.5.0.Final]

        at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]

        at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2187) [jsf-impl-2.2.5-jbossorg-3.jar:]

        at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) [jsf-impl-2.2.5-jbossorg-3.jar:]

        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) [jsf-impl-2.2.5-jbossorg-3.jar:]

        at org.jboss.as.jsf.injection.weld.ForwardingApplication.publishEvent(ForwardingApplication.java:294) [wildfly-jsf-injection-8.0.0.Final.jar:8.0.0.Final]

        at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:691) [jsf-impl-2.2.5-jbossorg-3.jar:]

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:253) [jsf-impl-2.2.5-jbossorg-3.jar:]

        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:187) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

       

       

      Any ideas?