14 Replies Latest reply on Aug 26, 2013 9:06 PM by Vinoos

    ADF EAR File deployement ERROR

    Vinoos

      Hi Experts,

      I am using jDev11g (11.1.1.5.0) and WebLogic Server Version: 10.3.5.0. When i am deploying my EAR file in a standalone server, i am getting below mentioned error messages. Could you help me to fix this issues.

       

      NoClassDefFoundError: org/apache/myfaces/trinidadinternal/taglib/UIXSelectItemTag

      a2c62:50d7cf6e:14097b54af6:-7ffd-0000000000006d7e> <1377203492792> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1377203490797' for task '10'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'MyWebApplicationName''

      weblogic.application.ModuleException: Failed to load webapp: 'MyWebApplicationName'

              at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)

              at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)

              at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)

              at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)

              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

              at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)

              at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:47)

              at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:614)

              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

              at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)

              at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)

              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.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:105)

              at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)

              at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)

              at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:749)

              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:160)

              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)

              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:47)

              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.NoClassDefFoundError: org/apache/myfaces/trinidadinternal/taglib/UIXSelectItemTag

              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

              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:306)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:295)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

              at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

              at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)

              at weblogic.servlet.internal.WebComponentContributor.containsAssignableClass(WebComponentContributor.java:193)

              at weblogic.servlet.internal.WebComponentContributor.contribute(WebComponentContributor.java:160)

              at com.bea.core.repackaged.springframework.jee.server.Bootstrap.deploy(Bootstrap.java:217)

              at com.bea.core.repackaged.springframework.jee.spi.WLSBootstrap.deploy(WLSBootstrap.java:116)

              at com.bea.core.repackaged.springframework.jee.server.Bootstrap.deploy(Bootstrap.java:174)

              at com.bea.core.repackaged.springframework.jee.server.Bootstrap.deploy(Bootstrap.java:153)

              at com.bea.core.repackaged.springframework.jee.server.Bootstrap.deploy(Bootstrap.java:137)

              at com.bea.core.repackaged.springframework.jee.spi.WebComponentContributorBrokerImpl.initialize(WebComponentContributorBrokerImpl.java:45)

              at weblogic.servlet.internal.WebComponentContributor.initialize(WebComponentContributor.java:98)

              at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1386)

              at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:449)

              at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:493)

              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)

              at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:972)

              at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)

              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:517)

              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

              at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)

              at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)

              at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)

              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

              at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)

              at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)

              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.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104)

              at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)

              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:171)

              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)

              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)

        • 1. Re: ADF EAR File deployement ERROR
          dvohra21

          java.lang.NoClassDefFoundError: org/apache/myfaces/trinidadinternal/taglib/UIXSelectItemTag

          Re: ADF deployment to managed server fails

          • 2. Re: ADF EAR File deployement ERROR
            Timo Hahn

            Have you checked if the adf runtime 11.1.1.5.0 is installed on the stand alone server you are trying to deploy to?

             

            Timo

            • 3. Re: ADF EAR File deployement ERROR
              Vinoos

              Hi,

               

              i tried to deploy the same EAR file in my integrated server, but getting same error message

               

              weblogic.application.ModuleException: Failed to load webapp: 'MyWebAppName'

                  at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)

                  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:517)

                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

                  Truncated. see log file for complete stacktrace

              Caused By: java.lang.ClassNotFoundException: org.apache.myfaces.trinidadinternal.taglib.UIXSelectItemTag

                  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:305)

                  at java.lang.ClassLoader.loadClass(ClassLoader.java:246)

                  at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

                  Truncated. see log file for complete stacktrace

              Please help me to fix this issue

              • 4. Re: ADF EAR File deployement ERROR
                Timo Hahn

                Do where did you get th he ear from?

                Have you build the ear file yourself and tested it directly using the integrated wls?

                 

                Timo

                • 5. Re: ADF EAR File deployement ERROR
                  Vinoos

                  Hi,

                   

                  I have created the EAR file from my jDeveloper.

                   

                  Application Menu > Deploy > Deploy to EAR

                  • 6. Re: ADF EAR File deployement ERROR
                    Timo Hahn

                    Does the app run when you start it in Jdev or when you debug it?

                     

                    Timo

                    • 7. Re: ADF EAR File deployement ERROR
                      Vinoos

                      Hi,

                       

                      Yes, its working fine, when i am running it directly from jDev IDE. Getting this error on EAR deployments

                      • 8. Re: ADF EAR File deployement ERROR
                        Timo Hahn

                        Check your model project if you see a public_html folder there when you open the top level node.

                         

                        Timo

                        1 person found this helpful
                        • 9. Re: ADF EAR File deployement ERROR
                          Vinoos

                          hi,

                          Yes, i can see public_html folder..

                          Can i remove it?

                          • 10. Re: ADF EAR File deployement ERROR
                            Timo Hahn

                            You have to. This it's causing your problem. However it has been ended up there, the public_html folder triggers some stuff which ends in the errors you see. Remove the folder from the file system and refresh the model project.

                            The public_html folder must only be part of the view controller project.

                             

                            Timo

                            1 person found this helpful
                            • 11. Re: ADF EAR File deployement ERROR
                              Vinoos

                              Hi,

                               

                              I have remove public_html folder from my model prject. But i am getting below error now: I have already included two trinidad libs in my project

                               

                              java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.component.html.HtmlScript

                                  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:305)

                                  at java.lang.ClassLoader.loadClass(ClassLoader.java:246)

                                  at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

                                  Truncated. see log file for complete stacktrace

                              Caused By: java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.component.html.HtmlScript

                                  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:305)

                                  at java.lang.ClassLoader.loadClass(ClassLoader.java:246)

                                  at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

                              • 12. Re: ADF EAR File deployement ERROR
                                Timo Hahn

                                You messed up the model project. You should not have any Trinidad our adf view library in the model project.

                                There are possibly some more descriptors added which should not be there.

                                It can be hard to clean the project up. To get the knowledge what library really are needed in the model project you should start a fresh fusion web application and create a small model project. It should at least have an application module, some eo and some vo. Then look up which libraries this new model project used. Compare them with the libraries on your real project and remove all libraries your see there which are not part of the new project.

                                Make a copy of the whole workspace before you do this as you otherwise can't go back later on, if needed.

                                 

                                You design try to delete the Trinidad libraries you added first, but if the application don't run after that, you have to go the way using the fresh application.

                                 

                                Timo

                                • 13. Re: ADF EAR File deployement ERROR
                                  Vinoos

                                  Hi,

                                  I will do the same and get back to you.. Thank a lot for your help

                                  • 14. Re: ADF EAR File deployement ERROR
                                    Vinoos

                                    Hi Timo,

                                     

                                    Thanks a lot for your kind help. I have resolved the issue.

                                    Created a new sample project, based on this i reconfigured my application libs.