10 Replies Latest reply on Sep 8, 2008 9:02 PM by Nick Belaevski

    RichFaces jars and Oracle(Bea) Weblogic 10.3 problem

    soso xuc Newbie

      Hi all

      i'm having trouble !

      i am using Eclipse 3.4 and Oracle(BEA) Weblogic 10.3

      my JSF apps run smoothly but as i add richface's jar file into WEB-INF/lib
      (i also add some code to web.xml file as written in richfaces-usersguide.pdf) folder and deploy app.The AS says that can't find page(Error 404).

      prblem is fixed as i remove three jar files from lib dir. other jar files written in lib dir are working well (Oracle jdbc from example)

      what's wrong ?

        • 1. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
          César Pérez Newbie

          I also have problems regarding Weblogic and richfaces. See my thread http://jboss.com/index.html?module=bb&op=viewtopic&t=141946

          It seems that these two does not work together and I haven't found any workaround.

          I have tried with JSF 1.2, MyFaces and different versions of RF without luck. In glassfish and Tomcat it works but it looks like nobody tested it on Weblogic.

          • 2. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
            Nick Belaevski Master

             

            "soso_xuc" wrote:
            Hi all

            i'm having trouble !

            i am using Eclipse 3.4 and Oracle(BEA) Weblogic 10.3

            my JSF apps run smoothly but as i add richface's jar file into WEB-INF/lib
            (i also add some code to web.xml file as written in richfaces-usersguide.pdf) folder and deploy app.The AS says that can't find page(Error 404).

            prblem is fixed as i remove three jar files from lib dir. other jar files written in lib dir are working well (Oracle jdbc from example)

            what's wrong ?


            Hi,

            Have you added RichFaces dependencies jars: commons-digester, commons-collections, commons-logging, commons-beanutils? Also Nekohtml & Xerces are required if you are using NEKO parser.

            Hint: you can extract all required jars from richfaces-demo aplication war.

            • 3. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
              Ilya Shaikovsky Master

              guys.. if there are errors in server log on starting?

              • 5. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
                soso xuc Newbie

                No errors while compiling or deployng

                error ocures after i request jsf page.

                the browser says page not exists (error code 404) with no error in log

                as i remove richfaces jars (3 jar files:api,impl and ui) from lib directory and rerun page works well

                • 6. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
                  soso xuc Newbie

                  i have done mistake in the lasp post regarding log
                  i got the log
                  here come sthe listing




                  <Sep 8, 2008 9:24:14 PM GMT+04:00> <BEA-149252> <No deployment '_auto_generated_ear_' found for Operation stop.>
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-101163> <Could not load user defined listener: com.sun.faces.application.WebappLifecycleListener
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  Truncated. see log file for complete stacktrace
                  >
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.NullPointerException.
                  java.lang.NullPointerException
                  at com.sun.faces.application.WebappLifecycleListener.contextDestroyed(WebappLifecycleListener.java:278)
                  at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:212)
                  at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:466)
                  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                  at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                  Truncated. see log file for complete stacktrace
                  >
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1220894656406' for task '15'. Error is: 'weblogic.application.ModuleException: [HTTP:101163]Could not load user defined listener: com.sun.faces.application.WebappLifecycleListener
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
                  at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
                  at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
                  at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
                  at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
                  at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
                  at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
                  at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
                  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
                  '
                  weblogic.application.ModuleException: [HTTP:101163]Could not load user defined listener: com.sun.faces.application.WebappLifecycleListener
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
                  at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
                  at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
                  at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
                  at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
                  at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
                  at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
                  at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
                  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  Truncated. see log file for complete stacktrace
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  Truncated. see log file for complete stacktrace
                  >
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application '_auto_generated_ear_'.>
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-149004> <Failures were detected while initiating start task for application '_auto_generated_ear_'.>
                  <Sep 8, 2008 9:24:16 PM GMT+04:00> <BEA-149078> <Stack trace for message 149004
                  weblogic.application.ModuleException: [HTTP:101163]Could not load user defined listener: com.sun.faces.application.WebappLifecycleListener
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
                  at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
                  at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
                  at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
                  at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
                  at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
                  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
                  at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
                  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
                  at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
                  at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
                  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
                  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
                  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                  Truncated. see log file for complete stacktrace
                  java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener
                  at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:263)
                  at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:361)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:104)
                  at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:69)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1782)
                  Truncated. see log file for complete stacktrace
                  >

                  • 7. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
                    soso xuc Newbie

                    i also copied all jars located in the demo app but with zero result

                    • 8. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
                      Francois Lessard Newbie

                      Did you use deployable war files for jsf and jsp 2.0 librairies ?

                      • 9. Re: RichFaces jars and Oracle(Bea) Weblogic 10.3 problem
                        soso xuc Newbie

                        The proble is solved


                        i addes 15 jars from richface sdemo project to my lib directory and the project worked

                        i downliaded project from
                        http://download.jboss.com/jboss-richfaces/richfaces-demo-3.1.6.GA-jee5.war

                        now my richfaces app works well with no errors

                        Thanks all for helping me