WFLYJSF0016: Failed to inject JSF from slot … with Wildfly 17.0.1
adrian.boangiu Sep 4, 2019 9:55 AMHello,
We have a JSF application based on Oracle ADF 12.1.3 framework that uses Mojarra 2.1.7 as default JSF impementation. It was deployed successfully on Wildfly 10.1.0 Final (which comes with JSF 2.2.13) and for this we configured JSF as described in the Admin Guide of Wildfly 10 (https://docs.jboss.org/author/display/WFLY10/JSF+Configuration#JSFConfiguration-InstallinganewJSFimplementationmanually).
We migrated successfully this application on Wildfly 17.0.1 using the exact same slots mojarra-2.1.7 for the modules com.sun.jsf-impl
and javax.faces.api
as those used in Wildfly 10.1.0 and changing only the slot mojarra-2.1.7 of the module org.jboss.as.jsf-injection
(to use the weld version and the jsf injection of Wildfly 17.0.1).
After this, we have changed the framework of our application to Oracle ADF 12.2.1.3 that uses Mojarra 2.2.8.21. We succeed to deploy and run this new version on Wildfly 10.1 without configuring at all the JSF subsystem.
At this point started our problems.
Oracle ceased to provide jsf-api and jsf-impl jars in this new version of the framework. So we used two approaches to get these jars:
- Download them from http://central.maven.org/maven2/com/sun/faces/jsf-api/ and http://central.maven.org/maven2/com/sun/faces/jsf-impl/.
- Obtain them from the glassfish.jsf.jar provided by Oracle ADF as described here https://stackoverflow.com/questions/35899887/how-to-install-one-jar-variant-of-jsf-2-3-javax-faces-jar-on-wildfly
We then configured the JSF as described in Admin Guide of Wildfly 17 (https://docs.wildfly.org/17/Admin_Guide.html#JSF) but we are unable to deploy the application. We get the same error no matter which pair of jsf-api and jsf-impl jars we use:
15:53:36,374 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."coswin.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."coswin.war".DEPENDENCIES: WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment "coswin.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183) [wildfly-server-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1737) [jboss-msc-1.4.8.Final.jar:1.4.8.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1699) [jboss-msc-1.4.8.Final.jar:1.4.8.Final]
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1557) [jboss-msc-1.4.8.Final.jar:1.4.8.Final]
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.3.3.Final.jar:2.3.3.Final]
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) [jboss-threads-2.3.3.Final.jar:2.3.3.Final]
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) [jboss-threads-2.3.3.Final.jar:2.3.3.Final]
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) [jboss-threads-2.3.3.Final.jar:2.3.3.Final]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_221]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJSF0016: Failed to inject JSF from slot mojarra-2.2.8.21
at org.jboss.as.jsf.deployment.JSFDependencyProcessor.addJSFInjection(JSFDependencyProcessor.java:156)
at org.jboss.as.jsf.deployment.JSFDependencyProcessor.deploy(JSFDependencyProcessor.java:97)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176) [wildfly-server-9.0.2.Final.jar:9.0.2.Final]
... 8 more
15:53:36,427 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "coswin.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"coswin.war\".DEPENDENCIES" => "WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment \"coswin.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJSF0016: Failed to inject JSF from slot mojarra-2.2.8.21"}}
I attach the log of the server (in DEBUG mode) in which we can see that 3 implementations of JSF are known: mojarra-2.2.8.21, mojarra-2.1.7, main (the same error we get if only 2 implementations are known mojarra-2.2.8.21 and main).
15:53:09,633 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 58) WFLYJSF0007: Activated the following JSF Implementations: [mojarra-2.2.8.21, mojarra-2.1.7, main]
Googling for WFLYJSF0016 was of no help.
Does anybody know what is the cause of this error?
Thank you
-
server.log.zip 38.0 KB