Version 4

    How do I remove the JSF implementation included in the JBoss Application Server?

     

    Instructions for versions: JBoss 4.2.x, EAP 4.2/4.3

     

    1) Remove the jsf jars from $JBOSS_HOME/server/<Profile>/deploy/jboss-web.deployer/jsf-libs/*.jar

         $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/jsf-libs/*.jar for JBoss 5 / EAP 5.

     

    2) Edit $JBOSS_HOME/server/<Profile>/deploy/jboss-web.deployer/conf/web.xml

         $JBOSS_HOME/server/<Profile>/deployers/jbossweb.deployer/web.xml for JBoss 5 / EAP 5.

     

    Comment out or remove the following lines:

     

    <context-param>
         <param-name>com.sun.faces.injectionProvider</param-name>
         <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
    </context-param>
    
    <listener>
         <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
    </listener>
    
    <listener>
         <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
    </listener>
    
    <init-param>
         <description>JSF standard tlds</description>
         <param-name>tagLibJar0</param-name>
         <param-value>jsf-libs/jsf-impl.jar</param-value>
    </init-param>
    <init-param>
         <description>JSTL standard tlds</description>
         <param-name>tagLibJar1</param-name>
         <param-value>jstl.jar</param-value>
    </init-param>
    

     

    3) For JBoss 5 / EAP 5 also, remove the following line from $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/jboss-structure.xml. Also note the admin-console.war requires jsf so it will not be able to start unless a jsf is available.

     

    <path name="jsf-libs" suffixes=".jar" />
    

     

    How do I remove the JSF implementation included in the JBoss Application Server?

     

    Instructions for versions: JBoss 4.0.x:

     

    1) Remove the $JBOSS_HOME/server/<Profile>/deploy/jbossweb-tomcat55.sar/jsf-lib/ directory

     

     

     

     

    How do I package a JSF Implementation in my application:

     

    1) Remove the JSF Implementation from your JBoss application server as described above.

     

    2) In your application's war/WEB-INF/web.xml
    Add your JSF Implementation's ConfigureListener, below is an example for the Sun JSF Implementation.

    <listener>
         <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    
    

     

    3) Include the jsf-api.jar, jsf-impl.jar and possibly vendor jsf extensions jar in your application's war/WEB-INF/lib/

     

    4) Include the html_basic.tld, jsf_core.tld and any other tlds in your applications' war/WEB-INF and list them as taglibs in the web.xml