4 Replies Latest reply on May 16, 2012 1:11 AM by Jason Shepherd

    Using Mojarra 2.0.4 with JBoss AS 7.0.2.Final

    Luca Cavagnoli Newbie

      JBoss AS 7.0.2 comes with Mojarra 2.1.3, but I need to user Mojarra 2.0.4 in my project, because of this bug.


      Here is what I tried:


      1.  create jboss-deployment-structure.xml in WEB-INF


                <?xml version="1.0" encoding="UTF-8"?>
                                <module name="javax.faces.api" slot="main"/>
                               <module name="com.sun.jsf-impl" slot="main"/>
                                <module name="javax.faces.api" slot="2.0.4"/>
                                <module name="com.sun.jsf-impl" slot="2.0.4"/>


      2.  In JBOSS_702_HOME/modules/com/sun/jsf-impl create folder 2.0.4

      3.  Copy files from JBOSS_701_HOME/modules/com/sun/jsf-impl/main to JBOSS_702_HOME/modules/com/sun/jsf-impl/2.0.4

      4.  In JBOSS_702_HOME/modules/javax/faces/api create folder 2.0.4

      5.  Copy files from JBOSS_701_HOME/modules/javax/faces/api/main to JBOSS_702_HOME/modules/javax/faces/api/2.0.4


      After following these steps, however, the deployment of my project fails with the folllowing exception:


      Caused by: org.jboss.modules.ModuleLoadException: Error loading module from JBOSS_702_HOME/modules/javax/faces/api/2.0.4/module.xml

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[25,61]
      Message: Invalid/mismatched module name (expected javax.faces.api:2.0.4)


      So, I changed the name in module.xml from "javax.faces.api" to "javax.faces.api:2.0.4"


      However, deployment keeps failing with that same exception!


      Can someone help me sort this out? Many thanks!