2 Replies Latest reply on Dec 24, 2014 6:49 AM by astinga

    Problems deploying JSF 2.2 on EAP 6.3

    astinga Newbie

      Hello, everyone!

      I'd like to ask about a problem I've been dealing with for some time now: I'm using JBoss EAP 6.3.0.GA, and tried to deploy JSF version 2.2.8 as custom modules (jsf-api and jsf-impl libraries). So, I created the folders "$JBOSS_HOME/modules/javax/faces/api/2.2", where I copied "jsf-api-2.2.8.jar", and "$JBOSS_HOME/modules/com/sun/jsf-impl/2.2", having the "jsf-impl-2.2.8.jar".

      The corresponding "module.xml" files:

       

      for the javax.faces.api module:

      <?xml version="1.0" encoding="UTF-8"?>

      <module xmlns="urn:jboss:module:1.1" name="javax.faces.api" slot="2.2">

              <dependencies>

                      <module name="javax.el.api" export="true" />

                      <module name="javax.servlet.api" export="true" />

                      <module name="javax.servlet.jsp.api" export="true" />

                      <module name="javax.servlet.jstl.api" export="true" />

                      <module name="javax.validation.api" export="true" />

                      <module name="com.sun.jsf-impl" slot="2.2" />

              </dependencies>

       

              <resources>

                      <resource-root path="jsf-api-2.2.8.jar" />

              </resources>

      </module>

       

      for the com.sun.jsf-impl module:

      <?xml version="1.0" encoding="UTF-8"?>

      <module xmlns="urn:jboss:module:1.1" name="com.sun.jsf-impl" slot="2.2">

              <dependencies>

                      <module name="javax.faces.api" slot="2.2" />

                      <module name="javaee.api" />

                      <module name="javax.servlet.jstl.api" />

                      <module name="org.apache.xerces" services="import" />

                      <module name="org.apache.xalan" services="import" />

              </dependencies>

       

              <resources>

                      <resource-root path="jsf-impl-2.2.8.jar" />

              </resources>

      </module>

       

      Using JDK1.7.0_45

       

      When starting up the server, it logs the following:

       

      WARN  [org.jboss.as.jsf] (ServerService Thread Pool -- 35) JBAS012604: JSF version slot '2.2' is missing from module org.jboss.as.jsf-injection

      INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 35) JBAS012605: Activated the following JSF Implementations: [main, 1.2]

       

      As you can see, slot "2.2" doesn't get activated!

      Can anyone see anything wrong with the module descriptors above? I've read over the internet a few procedures about how to deploy JSF 2.2 on AS7, I've followed the instructions, but I really don't remember any of them mentioning anything about the "org.jboss.as.jsf-injection" module.

       

      I know WildFly could be an alternative, yet I'm trying to learn what exactly I'm doing wrong...

       

      Thanks in advance!