2 Replies Latest reply on Nov 22, 2012 8:48 PM by Jon Bionda

    JBOSS 7.1.1.Final how to upgrade JSF

    Dave Chen Master

      Hello,

      There are some bugs that were fixed in newer version of JSF. I need to replace JSF 2.1.7(coming with JBOSS) with JSF 2.1.14.

      In the jboss-deployment-structure.xml,

       

      <exclusions>

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

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

      </exclusions>

       

      and include JSF2.1.14 in WEB-INF/lib.

       

      web.xml

      -----------

          <context-param>

              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

              <param-value>true</param-value>

          </context-param>

       

      Got exception:

       

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!

           Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider

       

      I saw some discussions about these, but I did not see HOW-TO.

      Thanks for any help.

       

      Dave