In order to deploy the photo album example from RichFaces 3.3.3.Final to JBoss application server 6 with JSF 2 support requires a couple of extra steps.
This tutorial assumes you have downloaded the photo album distribution from 3.3.3.F, and have at least JBoss AS 6 M5 available
Upgrade Seam Version
Seam 2.2.1.CR2 added support for JBoss AS 6. However this was not available when RichFaces 3.3.3.F was released. To upgrade simply modify the photo album's root pom.xml and set seamVersion to 2.2.1.CR2.
<properties> .... <!-- <seamVersion>2.1.1.GA</seamVersion> --> <seamVersion>2.2.1.CR2</seamVersion>
Follow RichFaces 3.3.3.Final/JSF 2 Wiki
For this part you simply have to follow the changes described in the RichFaces 3.3.3 and JSF 2.0. The main points to follow are:
- Updating the /photoalbum/source/web/pom.xml to use the richfaces-impl-jsf2 maven dependency.
- Adding the context param to the web projects web.xml.
Build Using Maven 2
Then all you need to do is build using Maven 2 in the standard way. For some reason Maven 3 has dependency issues and ends up adding an extra commons-logging jar which breaks deployment.
That's it, you should be able to deploy the generated EAR into JBoss AS 6 and see it by browsing to http://localhost:8080/photoalbum/