JBoss Community

Design of AS7 multi-JSF feature

new comment by Anthony O. View all comments on this document

I've tried that method with JBoss 7.2.0.final and MyFaces 2.1.10 and I had to modify the generated files a bit : for org/jboss/as/jsf-injection/myfaces-2.1.10/module.xml , I changed the "<resource-root" to path "../../../../../system/layers/base/org/jboss/as/jsf-injection/main/jboss-as-jsf-injection-7.2.0.Final.jar".

 

But now, when I try to start my JSF webapp, I have :

 

11:09:30,528 WARN  [org.jboss.as.jsf] (MSC service thread 1-13) JBAS012603: Unknown JSF version 'Mojarra-2.0'.  Default version 'main' will be used instead.

11:09:30,529 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-13) MSC00001: Failed to start service jboss.deployment.unit."sinistre-web.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."sinistre-web.war".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of deployment "sinistre-web.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) [rt.jar:1.6.0_27]

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

          at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_27]

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS012656: Default JSF implementation slot 'main' is invalid

          at org.jboss.as.jsf.deployment.JSFDependencyProcessor.deploy(JSFDependencyProcessor.java:79)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

          ... 5 more

 

And here is the result for /subsystem=jsf/:list-active-jsf-impls :

{

    "outcome" => "success",

    "result" => ["myfaces-2.1.10"]

}

 

... any idea ?