5 Replies Latest reply on Apr 13, 2010 5:16 AM by Anandraj

    Deploying app to cluster environment

    user12006059
      We have a WL (10.3.2.) cluster with two managed servers (all on different boxes), but now deploying app to the cluster doesn’t work. I get an error: "oracle.dms.wls.DMSServletFilter" when I try to activate changes. We have a standalone box and there this same app has been deployed without problems.

      I notice that the ear-file is not copied to the managed servers (it doesn’t matter which option I choose during the deployment) even we are in "stage" mode. Managed servers are up and running, as well as node managers are reachable.

      I guess I am missing some configuration...

      Thanks,
      J
        • 1. Re: Deploying app to cluster environment
          757655
          Post the full stack trace
          • 2. Re: Deploying app to cluster environment
            user12006059
            ####<Apr 5, 2010 10:21:58 AM MDT> <Warning> <Deployer> <server.com> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1270484518810> <BEA-149078> <Stack trace for message 149004
            weblogic.application.ModuleException: Failed to load webapp: '/appName'
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:378)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
            at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
            at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:54)
            at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
            at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
            at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
            at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
            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)

            Caused By: java.lang.ClassNotFoundException: oracle.dms.wls.DMSServletFilter
            at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
            at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processFilters(WebAnnotationProcessorImpl.java:240)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:212)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107)
            at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1300)
            at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:422)
            at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:466)
            at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414)
            at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:924)
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
            at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
            at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:54)
            at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
            at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
            at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
            at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
            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)


            ####<Apr 5, 2010 10:21:58 AM MDT> <Error> <Console> <server.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1270484518812> <BEA-240003> <Console encountered the following error weblogic.application.ModuleException: Failed to load webapp: '/appName'
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:378)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
            at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
            at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
            at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:54)
            at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
            at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
            at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
            at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
            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)
            Caused by: java.lang.ClassNotFoundException: oracle.dms.wls.DMSServletFilter
            at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
            at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processFilters(WebAnnotationProcessorImpl.java:240)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:212)
            at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107)
            at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1300)
            at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:422)
            at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:466)
            at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414)
            at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:924)
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)

            ========

            One other thing is, when I deploy the app to the admin server app is being added to the config.xml file, but when I try to deploy to the cluster then it is not added to that file (not in the admin server's file nor managed servers).

            Thanks,
            J
            • 3. Re: Deploying app to cluster environment
              Anandraj
              The class is not getting picked when the application is being activated, make sure that you have all the required jar files in the server classpath.

              Include dms.jar in the CLASSPATH environment variable in the setDomainEnv.cmd file.

              For example:-

              set CLASSPATH=C:\Jdeveloper\oc4j\jdbc\lib\ojdbc14dms.jar;C:\Jdeveloper\oc4j\jdbc\lib\ocrs12.jar;C:\Jdeveloper\oc4j\jdbc\lib\orai18n.jar;C:\Jdeveloper\jdbc\lib\ojdbc14.jar;C:\Jdeveloper\oc4j\lib\dms.jar;

              Regards,
              Raj
              1 person found this helpful
              • 4. Re: Deploying app to cluster environment
                user12006059
                Yes, you're right! Thanks for the tip. I am using Linux and adding jar file to the commEnv.sh file's WEBLOGIC_CLASSPATH I could get past my problems.

                -J
                • 5. Re: Deploying app to cluster environment
                  Anandraj
                  Great... J...

                  Cheers,
                  Raj