0 Replies Latest reply on Dec 7, 2011 9:18 AM by Paulo Nepomuceno

    Error when app starting

    Paulo Nepomuceno Newbie

      I'm try richfaces, but i want to use icefaces,  however i need your help please...

       

      My enviornment is Java 6 + NetBeans 7 + JSF 2 + RichFaces 4 + Tomcat 7.

       

      So, when application is starting, got this exception:

       

      Thank's in advance.

       

      07/12/2011 12:04:44 org.apache.catalina.core.StandardContext listenerStart

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

      java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature

          at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1570)

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

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

          at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5184)

          at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5179)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

      07/12/2011 12:04:48 org.apache.catalina.core.StandardContext listenerStart

      GRAVE: 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.ByteConverter

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

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

          at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5184)

          at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5179)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

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

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

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

          ... 8 more

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

          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)