no it starts fine for me. provide details about exception and application.
It's 3.3.1.CR1/samples/richfaces-demo/target/richfaces-demo.war. During deployment, this is what I see in server log
10:09:26,447 ERROR [StandardContext] Context [/richfaces-demo] startup failed due to previous errors
10:09:26,515 WARN [ServiceController] Problem starting service jboss.web.deployment:war=richfaces-demo.war,id=-510539774
org.jboss.deployment.DeploymentException: URL file:/home/prabhat/as/jboss-4.2.3.GA/server/default/tmp/deploy/tmp13469richfaces-demo-exp.war/ deployment failed
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
please look to the exceptions above this one(during starting) which is the cause for this deployment failed exception.
I suggest that you try this with fresh JBoss 4.2.3.GA on your side as well. It' very easy to reproduce.
1. Unzip JBoss AS 4.2.3.GA.zip
2. Deploy the demo app
3. See the error.
Caused by: java.lang.InstantiationException: org.jboss.seam.jsf.SeamApplicationFactory
I did the same with 3.3.1.GA and I still have problem. I do not have problems with photo album though. Things that I notice are:
richfaces demo app has lots of jar in WEB-INF/lib and I am not sure if they are needed. For example, demo app packages jsf jars as well. I do not know how class loading is setup but could they be conflicting with the one bundled with JBoss AS.
I've just tried 3.3.1.GA under JBoss 4.2.3. I get deployment problems (dom4j classes not found), when I run on the server with photoalbum deployed. Undeploying photoalbum helps: demo starts and works ok. Please try to do this. Also, are you using richfaces-demo-3.3.1.GA-jee5.war - this .war doesn't contain bundled JSF?
Thanks for quick response.
Photoalbum deploys fine for me as well. It's the richfaces demo app in (samples/richfaces-demo) that's the problem.
Where is richfaces-demo-3.3.1.GA-jee5.war? I build the war using svn tag and mvn install.
It's created when "release" profile is activated. You can download already built one from here: http://download.jboss.com/jboss-richfaces/richfaces-demo-3.3.1.GA-jee5.war or simply remove jsf-*.jar and el-*.jar from the ones you've built yourself.
I only had to remove jsf api and impl jars. Facelet is needed. War created using "mvn install" deploys fine with this change on JBoss 4.2.3.GA as well. As noted before, nothing needs to be on AS 5.
Many thanks Nick.