0 Replies Latest reply on Feb 4, 2015 2:17 AM by Chi Yin Cheung

    How to use EL 2.2 in Wildfly 8.2.0 instead of Default Implementation?

    Chi Yin Cheung Newbie

      I've followed the instructions for installing multi-JSF onto Wildfly 8.2.0, and managed to install and start Mojarra-2.1.7 correctly.

       

      However, I am stuck trying to add EL 2.2 into Wildfly. I've followed the multi-slot tutorial and placed the EL 2.2 jar into the Wildfly modules folder \wildfly-8.2.0.Final\modules\system\layers\base\javax\el\api\2.0\ folder along with the module.xml file.

       

      This is the contents of the module.xml file:

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

          <resources>

              <resource-root path="jboss-el-api_2.2_spec-1.0.0.Final.jar"/>

              <!-- Insert resources here -->

          </resources>

      </module>

       

      How do I get my JSF webapp to read and use my EL version, instead of the default version provided by Wildfly? Adding an entry for javax.el.api with slot version to jboss-deployment-structure.xml does not seem to work.

       

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

      <jboss-deployment-structure>

         <deployment>

              <dependencies>

                  <module name="deployment.javaee.api" />

                  <module name="org.hibernate" />

                  <module name="org.javassist" />

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

                  <module name="org.infinispan" />

                  <module name="org.jboss.resteasy.resteasy-jaxrs" />

                  <module name="javax.wsdl4j.api"/>

                  <module name="com.sun.xml.bind" />

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

              </dependencies>

              <exclusions>

                  <module name="javaee.api" />

                   <module name="org.apache.log4j" />

              </exclusions>

          </deployment>

         

          <module name="deployment.javaee.api">

              <dependencies>

                  <module name="javaee.api" export="true">

                      <imports>

                          <exclude path="org/apache/xml/security/**" />

                      </imports>

                  </module>

              </dependencies>

          </module>

      </jboss-deployment-structure>

      Thanks!