1 Reply Latest reply on Jun 24, 2011 1:16 PM by ssilvert

    How can I change default JSF implementation bundled with JBoss 5.1.0 ?

    stephan972

      HI ,

       

        I have configured my web.xml like this :

       

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

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

          version="2.5">

          <display-name>record</display-name>

       

          <context-param>

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

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

          </context-param>

      (...)

       

      But when i deploy my war file to JBoss, JBoss prints this out :

       

      15:18:50,388 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/record'

       

      I have bundled a different JSF implementation in the war file but JBoss stilll uses its own implentation Mojarra 1.2

       

      What's going on ?

      Stephan

      --------------------

      JBoss AS : 5.1.0.GA

      Java version: 1.6.0_20

      OS-System: Windows XP 5.1,x86

        • 1. Re: How can I change default JSF implementation bundled with JBoss 5.1.0 ?
          ssilvert

          For AS5, WAR_BUNDLES_JSF_IMPL allows you to bundle MyFaces.  In AS6, that context param is more powerful in that it will make sure you completely ignore built-in JSF.

           

          You can take JSF out of AS5 altogether by just removing the JSF jars in deploy/jbossweb.sar/jsf-impl and removing the references to JSF classes in the shared web.xml file at deployers/jbossweb.deployer/web.xml.

           

          Stan