Unfortunatelly we encountered some problems just after RichFaces 4.0 A1 released. And the problems caused by the fact that we currently using JSF 2 snapshots as base for the releases and current development.

Problem report

Guys who downloaded the richfaces-demo war for tomcat were able to see the demo working fine. But guys who built it from sources using maven or used jee5 targeted war file and downloaded latest JSF snapshots manually were not able to run demo application.

These RichFaces 4.0 A1 issues relies on two Mojara 2.0 issues:


This issue causes composite components which used to build simple layout for demo to be broken.


And this issue fix in Mojara actually broke the RichFaces related code and we are working on it currently to fix the problem: RF-7799

Both issues apeeared right after A1 release so we had no chance to look into them before.

We decided not spend time on rebuilding A1 because of that issues but continue our A2 works. And in order to get all the A1 stuff working we propose you to use Mojara 2.0 SNAPSHOT from 27 Aug (could exposed from our tomcat 6 richfaces-demo war file).

You could place richfaces-demo for tomcat(richfaces-demo-4.0.0.ALPHA1-tomcat6.war - do not rename it) to some temporary folder and execute next script from command line:

jar xvf richfaces-demo-4.0.0.ALPHA1-tomcat6.war WEB-INF/lib/jsf-api-2.0.0-SNAPSHOT.jar
jar xvf richfaces-demo-4.0.0.ALPHA1-tomcat6.war WEB-INF/lib/jsf-impl-2.0.0-SNAPSHOT.jar

cd WEB-INF/lib

jar xvf jsf-api-2.0.0-SNAPSHOT.jar META-INF/maven/com.sun.faces/jsf-api/pom.xml
jar xvf jsf-impl-2.0.0-SNAPSHOT.jar META-INF/maven/com.sun.faces/jsf-impl/pom.xml

call mvn install:install-file -Dfile=jsf-api-2.0.0-SNAPSHOT.jar -DpomFile=META-INF/maven/com.sun.faces/jsf-api/pom.xml
call mvn install:install-file -Dfile=jsf-impl-2.0.0-SNAPSHOT.jar -DpomFile=META-INF/maven/com.sun.faces/jsf-impl/pom.xml

cd ../..

For UNIX environment just remove call's from the script. It will expose the jsf jars from war file and deploy to your local repository overriding newer ones. Then you will be able to run the demos using mvn jetty:run-war from sources normally.

Back to top