3 Replies Latest reply on Feb 3, 2015 11:55 AM by fabs

    ear migration from eap 6.1.0 to 6.3.0: class loading problem if including osgi module

    fabs Newbie

      Hi,

      by migrating an ear from eap 6.1.0 to 6.3.0 I'm facing classloading issues related to the osgi subsystem/module inclusion.

      The exclusion of osgi subsystem and related module from standalone-full.xml fixes my problems, but unfortunately customer do not allow me to change AS configuration. So I tried to exclude it from jboss-deployment-structure.xml as follow (as it should have the same effect as far as I know):

       

      <deployment> 

        <exclude-subsystems> 

        <subsystem name="osgi" /> 

        </exclude-subsystems>

        <exclusions>           

        <module name="org.jboss.as.osgi" />

        </exclusions>  

      ...

      <sub-deployment name="MyEJB.jar">

        <exclude-subsystems> 

        <subsystem name="osgi" /> 

        </exclude-subsystems>

        <exclusions>           

        <module name="org.jboss.as.osgi" />

        </exclusions>

      ...

      but I still get classloading problems in this way.
      In EAP 6.1.0 I don't see any issue in spite of the osgi subsystem/module inclusion in standalone-full.xml is in place.

      Have you never faced the same issue? Do you have any tips?

      Thanks

        • 1. Re: ear migration from eap 6.1.0 to 6.3.0: class loading problem if including osgi module
          Tomaz Cerar Master

          excluding only <subsystem name="osgi" />  should be enough.

           

          what is the error  you get? can you post stack trace?

          • 2. Re: ear migration from eap 6.1.0 to 6.3.0: class loading problem if including osgi module
            fabs Newbie

            Hi Tomaz,

            I've also tried to exclude only <subsystem name="osgi" /> but I got the same problem.

            Here the relevant stacktrace fragment:

             

            18:47:19,940 WARN  [org.jboss.modules] (MSC service thread 1-7) Failed to define class com.company.framework.gate.schedule.FrwrkSchedule in Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/company/framework/gate/schedule/FrwrkSchedule (Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_26]

              at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_26]

              at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_26]

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

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

              at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:53) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

            Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final-redhat-1]

              ... 23 more

            Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.InitializingBean from [Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

              ... 28 more

             

             

            18:47:20,060 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."Gate_Frwk_Ev-1.1.0-jboss7.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."Gate_Frwk_Ev-1.1.0-jboss7.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "Gate_Frwk_Ev-1.1.0-jboss7.jar" of deployment "APP_EAR-1.0.0-jboss7.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

            Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.company.framework.gate.schedule.ejb.schedulePersistBean with ClassLoader ModuleClassLoader for Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader

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

              at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:53) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              ... 5 more

            Caused by: java.lang.LinkageError: Failed to link com/company/framework/gate/schedule/FrwrkSchedule (Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_26]

              at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_26]

              at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_26]

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

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

              ... 9 more

            Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final-redhat-1]

              ... 23 more

            Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.InitializingBean from [Module "deployment.APP_EAR-1.0.0-jboss7.ear.Gate_Frwk_Ev-1.1.0-jboss7.jar:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

              ... 28 more

             

             

            18:47:20,062 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."APP_Web-1.0.0-jboss7.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."APP_Web-1.0.0-jboss7.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "APP_Web-1.0.0-jboss7.war" of deployment "APP_EAR-1.0.0-jboss7.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

            Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.springframework.web.servlet.tags.EvalTag with ClassLoader ModuleClassLoader for Module "deployment.APP_EAR-1.0.0-jboss7.ear.APP_Web-1.0.0-jboss7.war:main" from Service Module Loader

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

              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) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

              ... 5 more

            Caused by: java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor

              at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_26]

              at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_26]

              at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_26]

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

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

              ... 10 more

            Caused by: java.lang.ClassNotFoundException: org.springframework.expression.PropertyAccessor from [Module "deployment.APP_EAR-1.0.0-jboss7.ear.APP_Web-1.0.0-jboss7.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

              ... 15 more

             

            [...]

             

             

            18:47:20,815 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

            JBAS014775:    New missing/unsatisfied dependencies:

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Frmwrk-1.1.0-jboss7".Proxy (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Frmwrk-1.1.0-jboss7".Proxy.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Frmwrk-1.1.0-jboss7".Proxy.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Frmwrk-1.1.0-jboss7".Proxy.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Frmwrk-1.1.0-jboss7".Proxy.ORB]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Storage-1.1.0-jboss7".BossStorage (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Storage-1.1.0-jboss7".BossStorage.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Storage-1.1.0-jboss7".BossStorage.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Storage-1.1.0-jboss7".BossStorage.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Gate_Storage-1.1.0-jboss7".BossStorage.HandleDelegate]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Address (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Address.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Address.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Address.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Address.ORB]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".AddressGroup (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".AddressGroup.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".AddressGroup.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".AddressGroup.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".AddressGroup.ValidatorFactory]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Application (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Application.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Application.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Application.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Application.Validator]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Channel (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Channel.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Channel.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Channel.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Channel.Validator]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".CoreDataAccess (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".CoreDataAccess.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".CoreDataAccess.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".CoreDataAccess.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".CoreDataAccess.Validator]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".DistributionList (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".DistributionList.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".DistributionList.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".DistributionList.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".DistributionList.ORB]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".IAWrapper (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".IAWrapper.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".IAWrapper.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".IAWrapper.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".IAWrapper.Validator]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MainConsole (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MainConsole.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MainConsole.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MainConsole.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MainConsole.ORB]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".ManSchedule (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".ManSchedule.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".ManSchedule.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".ManSchedule.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".ManSchedule.ValidatorFactory]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MonitorEngine (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MonitorEngine.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MonitorEngine.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MonitorEngine.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".MonitorEngine.ValidatorFactory]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".SearchFunctions (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".SearchFunctions.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".SearchFunctions.ValidatorFactory, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".SearchFunctions.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".SearchFunctions.HandleDelegate]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Survey (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Survey.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Survey.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Survey.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Survey.ValidatorFactory]

                  service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Utility (missing) dependents: [service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Utility.HandleDelegate, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Utility.Validator, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Utility.ORB, service jboss.naming.context.java.comp."APP_EAR-1.0.0-jboss7"."Mod_Service-1.0.1".Utility.ValidatorFactory]

            JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."Gate_Frwk_Ev-1.1.0-jboss7.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."Gate_Frwk_Ev-1.1.0-jboss7.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "Gate_Frwk_Ev-1.1.0-jboss7.jar" of deployment "APP_EAR-1.0.0-jboss7.ear"

                  service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."APP_Web-1.0.0-jboss7.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_EAR-1.0.0-jboss7.ear"."APP_Web-1.0.0-jboss7.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "APP_Web-1.0.0-jboss7.war" of deployment "APP_EAR-1.0.0-jboss7.ear"

             

             

            18:47:20,844 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

            18:47:20,844 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

            18:47:20,845 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) started (with errors) in 67884ms - Started 2967 of 3180 services (158 services failed or missing dependencies, 530 services are lazy, passive or on-demand)


            Just underline again that all these classloading problems disappears if I exclude osgi module/subsystem from standalone-full.xml

             

            Thanks

            • 3. Re: Re: ear migration from eap 6.1.0 to 6.3.0: class loading problem if including osgi module
              fabs Newbie

              As stated in EAP Development Guide, "Excluding a subsystem provides the same effect as removing the subsystem, but it applies only to a single deployment." The odd thing here is that it doesn't seems to be the case of the osgi subsystem. I have not the same effect.

              Do you have any idea? Any test I could do?
              I also attached my jboss-deployment-structure.xml if it could help.