6 Replies Latest reply on Jun 20, 2013 10:45 AM by Mashama McFarlane

    Does Richfaces 4.3.2 work with EAP 6.1(BETA|FINAL)?

    Mashama McFarlane Novice

      I am trying to use the CDI push capability in Richfaces 4.3.2.  I am encountering errors upon deployment:

      12:23:27,608 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 168) Initializing Mojarra 2.1.19-jbossorg-1 20130304-0420 for context '/ValueQuestReportsRest'

      12:23:27,983 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 168) Critical error during deployment: : com.sun.faces.config.ConfigurationException:

        Source Document: vfs:/C:/Users/mmcfarlane/Downloads/jboss-eap-6.1.0.Beta/jboss-eap-6.1/standalone/deployments/valuequest-reports-rest.war/WEB-INF/lib/richfaces-core-impl-4.3.2.Final.jar/META-INF/faces-config.xml

        Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException

                at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:293) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:766) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:313) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

                at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-4.jar:7.2.0.Final-redhat-4]

                at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-4.jar:7.2.0.Final-redhat-4]

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-4.jar:7.2.0.Final-redhat-4]

                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_29]

                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_29]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_29]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_29]

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_29]

                at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.6.0_29]

                at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:263) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

                ... 20 more

      Caused by: org.jboss.modules.ModuleLoadError: org.apache.lucene:main

                at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.Module.getPathsUnchecked(Module.java:1180) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.Module.loadModuleClass(Module.java:513) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1-redhat-1]

                at org.richfaces.resource.ResourceUtils.readMappings(ResourceUtils.java:100) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]

                at org.richfaces.resource.ResourceFactoryImpl.<init>(ResourceFactoryImpl.java:93) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]

                at org.richfaces.resource.ResourceHandlerImpl.<init>(ResourceHandlerImpl.java:63) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]

                ... 25 more

       

      It looks like it is a dependency issue as EAP 6.1.Beta comes with org.apache.lucence:3.6.2 so I tried to explicitly resolve this dependency in the jboss-deployment-structure.xml file:

       

      <jboss-deployment-structure>

                <deployment>

                          <dependencies>

                                    <module name="org.freemarker" />

                                    <module name="org.apache.commons.io"  />

       

                                    <module name="org.apache.lucene" slot="3.6.2"/>

       

       

                                    <module name="javax.jcr" />

                                    <module name="org.modeshape.jcr.api" services="import" />

                                    <module name="org.modeshape" services="import" />

       

                          </dependencies>

                </deployment>

      </jboss-deployment-structure>

       

       

      Unfortunately it still looks like upon deployment EAP 6.1 is attempting to load the 'main' slot and not the '3.6.2' slot.