Total Pageviews

Sunday, November 11, 2007

JBoss 4.2.x and JSF applications

I upgraded from JBoss 4.0.4.GA to 4.2.2.GA and was not able to successfully deploy a JSF application into the container.
Various error messages were thrown by the container, one of it telling to have a closer look into the JBoss Wiki to determine the cause of deployment failure when using JSF application.
The problem was, that my application is bundled the MyFaces API and Impl core packages but JBoss uses the java.net JSF implementation.
If you still would like to use the MyFaces implementation you have to add the following lines to your web.xml file:
<context-param>
     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
     <param-value>true</param-value>
</context-param>
The full article is available under the following URL: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces

No comments:

Post a Comment