5 Replies Latest reply: Oct 29, 2012 6:40 AM by Ganesh.. RSS

    ADF application on standalone Weblogic Server Fails: ClassNotFoundException

    user11980241
      We are trying to run an ADF application on a 10.3.5 standalone Weblogic Server. We are able to deploy the application successfully but when we try to initiate it fails with the following message: "java.lang.ClassNotFoundException: oracle.adf.controller.v2.lifecycle.PagePhaseListener";, in the managed server log appears this exception:
      <<WLS Kernel>> <> <0e62b8e8299c52b3:66302a2a:13a26b213e1:-8000-00000000000084a2> <1351238617527> <BEA-149059> <Module empty.jar of application UvaEconomico [Ver
      sion=V2.0] is transitioning from STATE_PREPARED to STATE_NEW on server wls_uva.>
      ####<26-oct-2012 10H03' CEST> <Info> <Deployer> <uxxi-des.ges.uva.es> <wls_uva> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'>
       <<WLS Kernel>> <> <0e62b8e8299c52b3:66302a2a:13a26b213e1:-8000-00000000000084a2> <1351238617528> <BEA-149060> <Module empty.jar of application UvaEconomico [Ver
      sion=V2.0] successfully transitioned from STATE_PREPARED to STATE_NEW on server wls_uva.>
      ####<26-oct-2012 10H03' CEST> <Info> <Deployer> <uxxi-des.ges.uva.es> <wls_uva> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'>
       <<WLS Kernel>> <> <0e62b8e8299c52b3:66302a2a:13a26b213e1:-8000-00000000000084a2> <1351238617529> <BEA-149059> <Module weblogic.xml.registry.XMLModule of applica
      tion UvaEconomico [Version=V2.0] is transitioning from STATE_PREPARED to STATE_NEW on server wls_uva.>
      ####<26-oct-2012 10H03' CEST> <Info> <Deployer> <uxxi-des.ges.uva.es> <wls_uva> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'>
       <<WLS Kernel>> <> <0e62b8e8299c52b3:66302a2a:13a26b213e1:-8000-00000000000084a2> <1351238617530> <BEA-149060> <Module weblogic.xml.registry.XMLModule of applica
      tion UvaEconomico [Version=V2.0] successfully transitioned from STATE_PREPARED to STATE_NEW on server wls_uva.>
      ####<26-oct-2012 10H03' CEST> <Error> <Deployer> <uxxi-des.ges.uva.es> <wls_uva> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'
      
      <<WLS Kernel>> <> <0e62b8e8299c52b3:66302a2a:13a26b213e1:-8000-00000000000084a2> <1351238617563> <BEA-149265> <Failure occurred in the execution of deployment
      request with ID '1351238613928' for task '30'. Error is: 'weblogic.application.ModuleException: ' weblogic.application.ModuleException:         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)         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:150)         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:140)         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused By: java.lang.ClassNotFoundException: oracle.adf.controller.v2.lifecycle.PagePhaseListener         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at java.lang.ClassLoader.defineClass1(Native Method)         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)         at java.lang.Class.forName0(Native Method)         at java.lang.Class.forName(Class.java:169)         at oracle.adf.controller.v2.lifecycle.ADFLifecycle.initControllerConfigListeners(ADFLifecycle.java:62)         at oracle.adf.controller.v2.lifecycle.ADFLifecycle.setInstance(ADFLifecycle.java:24)         at oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl.<init>(JSFLifecycleImpl.java:33)         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.<init>(ADFPhaseListener.java:40)         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.<init>(ADFLifecyclePhaseListener.java:26)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)         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:150)         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:140)         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused By: java.lang.ClassNotFoundException: oracle.adf.controller.v2.lifecycle.PagePhaseListener         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at java.lang.ClassLoader.defineClass1(Native Method)         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)         at java.lang.Class.forName0(Native Method)         at java.lang.Class.forName(Class.java:169)         at oracle.adf.controller.v2.lifecycle.ADFLifecycle.initControllerConfigListeners(ADFLifecycle.java:62)         at oracle.adf.controller.v2.lifecycle.ADFLifecycle.setInstance(ADFLifecycle.java:24)         at oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl.<init>(JSFLifecycleImpl.java:33)         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.<init>(ADFPhaseListener.java:40)         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.<init>(ADFLifecyclePhaseListener.java:26)
      In the managed server out file appears the following trace:
      <26-oct-2012 10H03' CEST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'UvaEconomico [Version=V2.0]'.>
      26-oct-2012 11:07:23 oracle.mds.internal.lcm.logging.MDSLCMLogger info
      INFO: "Servicios de Metadatos: Archivo de metadatos (MAR) no encontrado."
      26-oct-2012 11:09:35 com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra (1.2_15-20100923-SNAPSHOT) for context '/GestionPersonalUva'
      <26-oct-2012 11H09' CEST> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adf.controller.v2.lifecycle.PagePhaseListener.
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adf.controller.v2.lifecycle.PagePhaseListener
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:214)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200)
              at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
              Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: oracle.adf.controller.v2.lifecycle.PagePhaseListener
              at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
              at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
              Truncated. see log file for complete stacktrace
      >
      26-oct-2012 11:09:38 oracle.mds.internal.lcm.logging.MDSLCMLogger log
      INFO: MBean: oracle.mds.lcm:name=MDSAppRuntime,type=MDSAppRuntime,Application=UVaEconomico,ApplicationVersion=V2.0 deregistered
      <26-oct-2012 11H09' CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1351242575046' for task '33'. Error is: 'weblogic.application.ModuleException: '
      weblogic.application.ModuleException:
              at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
              at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
              at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
              at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
              Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: oracle.adf.controller.v2.lifecycle.PagePhaseListener
              at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
              at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
              Truncated. see log file for complete stacktrace
      The app we are trying to deploy is an ear file with two web modules (war). In development are using JDeveloper Studio 11.1.1.5 and the application runs fine on integrated Weblogic Server when the deployment is made automatically by JDeveloper. If we try to deploy the ear on JDeveloper integrated Weblogic Server manually the same error appears.

      We are using the same versions of Weblogic Server and we have deployed the same adf runtime and library version.

      I don't know which is the problem. Any help would be appreciated.

      Regards.

      Edited by: user11980241 on 26-oct-2012 2:21