Friday, April 27, 2012

Deploy own version JSF 2.0 on JBoss 6

1. Put your own jsf jar files in the WEB-INF/lib like WEB-INF/lib/jsf2.0.6
2. Add below context parameters in web.xml



<context-param>

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

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

</context-param>

3. Add Listener for JBoss to avoid "Could not find Factory:javax.faces.context.FacesContextFactory" excption if it is necessary.



<listener>

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

</listener>

No comments: