9 Replies Latest reply on May 20, 2009 1:51 PM by prabhat.jha

    richfaces demo can not deploy in JBoss AS 4.2.3

    prabhat.jha

      Is $SUBJECT a known issue with demo build from 3.3.1.CR2? It seems to be fine with AS 5.0.1.GA.

        • 1. Re: richfaces demo can not deploy in JBoss AS 4.2.3
          ilya_shaikovsky

          no it starts fine for me. provide details about exception and application.

          • 2. Re: richfaces demo can not deploy in JBoss AS 4.2.3
            prabhat.jha

            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 org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:386)
            at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
            at org.jboss.web.WebModule.startModule(WebModule.java:83)
            at org.jboss.web.WebModule.startService(WebModule.java:61)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

            • 3. Re: richfaces demo can not deploy in JBoss AS 4.2.3
              ilya_shaikovsky

              please look to the exceptions above this one(during starting) which is the cause for this deployment failed exception.

              • 4. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                prabhat.jha

                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
                at java.lang.Class.newInstance0(Class.java:335)
                at java.lang.Class.newInstance(Class.java:303)
                at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:578)
                at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:459)
                at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:260)
                at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)
                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131)
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)

                • 5. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                  prabhat.jha

                  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.

                  • 6. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                    nbelaevski

                    Hi Prabhat,

                    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?

                    • 7. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                      prabhat.jha

                      Hi Nick,

                      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.

                      • 8. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                        nbelaevski

                        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.

                        • 9. Re: richfaces demo can not deploy in JBoss AS 4.2.3
                          prabhat.jha

                          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.