0 Replies Latest reply on Aug 16, 2011 8:32 AM by swapnil surade

    Facing problem while configuring richfaces 4

    swapnil surade Newbie

      Hi,

      I'm trying to deploy richface application on tomcat 6 but while configuring I got following stacktrace.

       

       

      java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.BooleanConverter

          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:221)

          at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207)

          at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:54)

          at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:68)

          at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:62)

          at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:28)

          at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:136)

          at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:110)

          at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:152)

          at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)

          at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)

          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)

          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)

          at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

          at org.apache.catalina.core.StandardService.start(StandardService.java:519)

          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

          at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Aug 16, 2011 5:54:11 PM com.sun.faces.config.ConfigureListener contextInitialized

      SEVERE: Critical error during deployment:

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class javax.faces.convert.BooleanConverter

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

          at org.apache.catalina.core.StandardService.start(StandardService.java:519)

          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

          at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Caused by: java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.BooleanConverter

          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:221)

          at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207)

          at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:54)

          at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:68)

          at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:62)

          at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:28)

          at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:136)

          at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:110)

          at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:152)

          at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)

          at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)

          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)

          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)

          at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)

          ... 16 more

      Aug 16, 2011 5:54:11 PM org.apache.catalina.core.StandardContext listenerStart

      SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener

      java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class javax.faces.convert.BooleanConverter

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

          at org.apache.catalina.core.StandardService.start(StandardService.java:519)

          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

          at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class javax.faces.convert.BooleanConverter

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

          ... 15 more

      Caused by: java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.BooleanConverter

          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:221)

          at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207)

          at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:54)

          at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:68)

          at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:62)

          at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:28)

          at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:136)

          at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:110)

          at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:152)

          at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)

          at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)

          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)

          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)

          at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)

          ... 16 more

      Aug 16, 2011 5:54:11 PM org.apache.catalina.core.StandardContext start

      SEVERE: Error listenerStart

      Aug 16, 2011 5:54:11 PM org.apache.catalina.core.StandardContext start

      SEVERE: Context [/jsfpractice] startup failed due to previous errors

      Aug 16, 2011 5:54:11 PM com.sun.faces.config.ConfigureListener contextDestroyed

      SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime

      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory

          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:894)

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)

          at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:112)

          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:325)

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4174)

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4778)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4675)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

          at org.apache.catalina.core.StandardService.start(StandardService.java:519)

          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

          at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Aug 16, 2011 5:54:11 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap

      SEVERE: The web application [/jsfpractice] created a ThreadLocal with key of type [null] (value [javax.faces.context.FacesContext$1@18e80a6]) and a value of type [com.sun.faces.config.InitFacesContext] (value [com.sun.faces.config.InitFacesContext@a030d6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

       

       

      I'm using these jar files

      annotations-api.jar

      catalina-ant.jar

      catalina-ha.jar

      catalina-tribes.jar

      catalina.jar

      commons-beanutils-1.7.0.jar

      commons-collections-3.2.1.jar

      commons-digester-1.6.jar

      commons-logging-1.1.1.jar

      cssparser-0.9.5.jar

      el-api.jar

      guava-r08.jar

      jasper-el.jar

      jasper-jdt.jar

      jasper.jar

      jcommon-1.0.0.jar

      jsf-api-2.1.1-b04.jar

      jsf-impl-2.1.1-b04.jar

      jsp-api.jar

      jstl-1.1.2.jar

      richfaces-components-api-4.0.0.Final.jar

      richfaces-components-ui-4.0.0.Final.jar

      richfaces-core-api-4.0.0.Final.jar

      richfaces-core-impl-4.0.0.Final.jar

      sac-1.3.jar

      servlet-api.jar

      standard-1.1.2.jar

      tomcat-coyote.jar

      tomcat-dbcp.jar

      tomcat-i18n-es.jar

      tomcat-i18n-fr.jar

      tomcat-i18n-ja.jar

       

      Please let me know that if i'm missing anything.

       

      thanks in advance.