2 Replies Latest reply on May 30, 2013 2:41 PM by Nicklas Karlsson

    MyFaces on WildFly working?

    Nicklas Karlsson Master

      What is the correct way of getting MyFaces to work on WildFly?

       

      I built upstream master and run the script/CLI commands mentioned in https://issues.jboss.org/browse/WFLY-976?focusedCommentId=12770221&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12770221 (edited the jsf-injection module reference to the correct jar) and edited the weld jsf-slots to point at the myfaces module. However I get a

       

       

      15:39:53,305 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."showcase.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."showcase.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "showcase.war"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1974) [jboss-msc-1.1.2.Final.jar:1.1.2.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1907) [jboss-msc-1.1.2.Final.jar:1.1.2.Final]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

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

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

      Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.icefaces.ace.component.progressbar.ProgressBarTag with ClassLoader ModuleClassLoader for Module "deployment.showcase.war:main" from Service Module Loader

                at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]

                at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)

                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)

                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]

                ... 5 more

      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "javax/el/ValueExpression"

                at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_07]

                at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_07]

                at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_07]

                at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]

                at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]

                ... 10 more

       

       

      15:39:53,316 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "showcase.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"showcase.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"showcase.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"showcase.war\"

          Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.icefaces.ace.component.progressbar.ProgressBarTag with ClassLoader ModuleClassLoader for Module \"deployment.showcase.war:main\" from Service Module Loader

          Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name \"javax/el/ValueExpression\""}}

      15:39:53,358 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 27) JBAS018559: Deployed "showcase.war" (runtime-name : "showcase.war")

      15:39:53,362 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."showcase.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."showcase.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "showcase.war"

       

       

      When deploying the ICEfaces showcase. Theories?