Remove JSF from EAP and use a different JSF version
https://access.redhat.com/kb/docs/DOC-17883 How do I remove Java Server Faces (JSF) from JBoss Enterprise Application Platform and use a different JSF version? Article ID: 17883 - Created on: Jun 8, 2009 4:19 PM - Last Modified: Mar 28, 2011 11:34 AM Issue How do I remove Java Server Faces (JSF) from JBoss Enterprise Application Platform and use a different JSF version? Environment JBoss Enterprise Application Platform (EAP) 4.2 4.3 5.0 Resolution Note: The following information has been provided by Red Hat, but is outside the scope of our posted Service Level Agreements (https://www.redhat.com/support/service/sla/) and support procedures. The information is provided as-is and any configuration settings or installed applications made from the information in this article could make your Operating System unsupported by Red Hat Support Services. The intent of this article is to provide you with information to accomplish your system needs. Use the information in this article at your own risk. Introduction JBoss Enterprise Application Platform includes a Java Server Faces (JSF) implementation. JSF is included in the J2EE 5 specification. Some customers have a requirement for a different version or implementation of JSF. This article describes how to remove the JSF version included so that a different version can be used. NOTE: JBoss Support can only support JSF issues with the JSF implementation & version included in JBoss Enterprise Application Platform. 1. Remove the jsf jars from JBoss Enterprise Application Platform Remove the following jars from JBoss EAP 5: $JBOSS_HOME/server/ /deploy/jbossweb.sar/jsf-libs/ JBoss EAP 4.x: $JBOSS_HOME/server//deploy/jboss-web.deployer/jsf-libs/ jboss-faces.jar jsf-api.jar jsf-impl.jar 2. Remove the JSF configruation from JBoss Enterprise Application Platform Edit the web.xml JBoss EAP 5: $JBOSS_HOME/server//deployers/jbossweb.deployer/web.xml JBoss EAP 4.x: $JBOSS_HOME/server//deploy/jboss-web.deployer/conf/web.xml Comment out or remove the following lines com.sun.faces.injectionProvider org.jboss.web.jsf.integration.injection.JBossInjectionProvider org.jboss.web.jsf.integration.config.JBossJSFConfigureListener com.sun.faces.application.WebappLifecycleListener JSF standard tlds tagLibJar0 jsf-libs/jsf-impl.jar 3. For JBoss EAP 5 edit $JBOSS_HOME/server//deploy/jbossweb.sar/META-INF/jboss-structure.xml Remove the following line: 4. Add the JSF listener to your application's web.xml Edit your application war's WEB-INF/web.xml Add this listener if using a Sun JSF Implementation com.sun.faces.config.ConfigureListener Add this listener if using MyFaces JSF Implementation org.apache.myfaces.webapp.StartupServletContextListener 5. Include your JSF implementation jars in your application Copy the JSF jars in to your application's WEB-INF/lib/ *jsf-api.jar *jsf-impl.jar any other vendor jsf extensions jars 6. Include tlds Include the basic JSF tlds in your war/WEB-INF jsf_core.tld html_basic.tld List the tlds as taglibs in the web.xml if the tlds are not already in the JSF Implementation's jar/META-INF/* http://java.sun.com/jsf/core /WEB-INF/jsf_core.tld http://java.sun.com/jsf/html /WEB-INF/html_basic.tld