5 Replies Latest reply on Apr 20, 2015 9:48 AM by Tomaz Cerar

    Migration from websphere to jboss wildfy 8.0

    massamba mass Newbie

      i'm migrating an application from websphere to jboss and i get this error. Need help

       

       

      13:03:11,553 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."EssaiEAR.ear"."Essai.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."EssaiEAR.ear"."Essai.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "Essai.war" of deployment "EssaiEAR.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_79]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_79]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_79]

      Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class calcoli.WB_RunInEsecuzioneDettaglio with ClassLoader ModuleClassLoader for Module "deployment.EssaiEAR.ear.Essai.war:main" from Service Module Loader

        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)

        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)

        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

        ... 5 more

      Caused by: java.lang.NoClassDefFoundError: LVCnsPlt;

        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_79]

        at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_79]

        at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_79]

        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

        ... 10 more

      Caused by: java.lang.ClassNotFoundException: VCnsPlt from [Module "deployment.EssaiEAR.ear.Essai.war:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]

        ... 15 more

       

       

      13:03:11,562 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "EssaiEAR.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"EssaiEAR.ear\".\"Essai.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"EssaiEAR.ear\".\"Essai.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"Essai.war\" of deployment \"EssaiEAR.ear\"

          Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class calcoli.WB_RunInEsecuzioneDettaglio with ClassLoader ModuleClassLoader for Module \"deployment.EssaiEAR.ear.Essai.war:main\" from Service Module Loader

          Caused by: java.lang.NoClassDefFoundError: LVCnsPlt;

          Caused by: java.lang.ClassNotFoundException: VCnsPlt from [Module \"deployment.EssaiEAR.ear.Essai.war:main\" from Service Module Loader]"}}

      13:03:11,938 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "EssaiEAR.ear" (runtime-name : "EssaiEAR.ear")

      13:03:11,938 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."EssaiEAR.ear"."Essai.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."EssaiEAR.ear"."Essai.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "Essai.war" of deployment "EssaiEAR.ear"

        • 1. Re: Migration from websphere to jboss wildfy 8.0
          John Doyle Apprentice

          You should pose your question in the WildFly community.  JBoss EAP has not been rebased on WildFly yet and remains on an AS7 base.

           

          ~john

          • 2. Re: Migration from websphere to jboss wildfy 8.0
            jaikiran pai Master

            Topic now moved to WildFly forum.

            • 3. Re: Migration from websphere to jboss wildfy 8.0
              jaikiran pai Master

              Caused by: java.lang.ClassNotFoundException: VCnsPlt from [Module "deployment.EssaiEAR.ear.Essai.war:main" from Service Module Loader]

               

              Where exactly is that class located in your application?

              • 4. Re: Migration from websphere to jboss wildfy 8.0
                massamba mass Newbie

                This class is under java resources/src.

                Must i necessary create jboss-web.xml ,application.xml,jboss-structure-deployement.xml  under WEB_INF ???

                I see that the application that i want to migrate have the websphere conf,application.xml......

                I want to now the = of com.ibm.websphere.security.auth  package  in jboss

                Now i got this error:

                 

                ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./Essai: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./Essai: Failed to start service

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_79]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_79]

                  at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_79]

                Caused by: java.lang.NoClassDefFoundError: com/ibm/wsspi/uow/UOWActionException

                  at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.7.0_79]

                  at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) [rt.jar:1.7.0_79]

                  at java.lang.Class.getDeclaredConstructors(Unknown Source) [rt.jar:1.7.0_79]

                  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:227)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:930)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:903)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

                  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)

                  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

                  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

                  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

                  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

                  at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

                  at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:187)

                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)

                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

                  ... 3 more

                Caused by: java.lang.ClassNotFoundException: com.ibm.wsspi.uow.UOWActionException from [Module "deployment.EssaiEAR.ear.Essai.war:main" from Service Module Loader]

                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]

                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]

                  ... 27 more

                 

                 

                10:42:47,376 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "EssaiEAR.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./Essai" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./Essai: Failed to start service

                    Caused by: java.lang.NoClassDefFoundError: com/ibm/wsspi/uow/UOWActionException

                    Caused by: java.lang.ClassNotFoundException: com.ibm.wsspi.uow.UOWActionException from [Module \"deployment.EssaiEAR.ear.Essai.war:main\" from Service Module Loader]"}}

                10:42:47,454 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "ojdbc6.jar" (runtime-name : "ojdbc6.jar")

                10:42:47,454 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "EssaiEAR.ear" (runtime-name : "EssaiEAR.ear")

                10:42:47,454 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

                JBAS014777:   Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./Essai: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./Essai: Failed to start service

                • 5. Re: Migration from websphere to jboss wildfy 8.0
                  Tomaz Cerar Master

                  as the error message says

                   

                  Caused by: java.lang.ClassNotFoundException: com.ibm.wsspi.uow.UOWActionException

                   

                  something in your code is using WebSphere specific classes, in this case one exception.

                  You should probably modify the code not to use it. also your build should be updated to not use any IBM specific dependencies.

                  this way you would catch problems like this during compile time.