11 Replies Latest reply on Jan 9, 2012 4:01 AM by zemunk

    Failed to process phase POST_MODULE while migrating from JBoss AS 5 to 7

    zemunk Newbie

      Hi,

       

      I have been given the task to migrate an application from Jboss 5 to 7 but have no previous experience with Jboss. Please be patient with me

       

      The .ear has the structure:

       

      META-INF/MANIFEST.MF
      META-INF/
      META-INF/application.xml
      entities.jar
      lib/
      lib/iText-2.1.7.jar
      lib/jsch-20091230.jar
      services.jar
      

       

      The services.jar contains the business logic and the entities.jar the database mapping.

      While deploying the application on the server I encountered the following error:

       

      09:21:28,190 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "webshop.ear"

      09:21:28,339 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "services.jar"

      09:21:28,339 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "entities.jar"

      09:21:28,345 INFO  [org.jboss.jpa] (MSC service thread 1-4) read persistence.xml for gfo_pu

      09:21:28,347 INFO  [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for zfa_pu

      09:21:28,349 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to webshop.ear

      09:21:28,350 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added (default provider) org.hibernate dependency to application deployment (since 2 PU(s) didn't specify jboss.as.jpa.providerModule)

      09:21:28,350 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added org.hibernate dependency to application deployment

      09:21:28,351 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to entities.jar

      09:21:28,351 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)

      09:21:28,351 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added org.hibernate dependency to application deployment

      09:21:28,352 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to services.jar

      09:21:28,352 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)

      09:21:28,352 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added org.hibernate dependency to application deployment

      09:21:28,379 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."webshop.ear"."services.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."webshop.ear"."services.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "services.jar" of deployment "webshop.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

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

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

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

      Caused by: java.lang.RuntimeException: Error getting reflective information for class de.r_kom.intern.webservices.Auftragstransferer

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)

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

          at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.processTransactionAttributeAnnotation(TransactionAttributeMergingProcessor.java:76)

          at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.handleAnnotations(TransactionAttributeMergingProcessor.java:61)

          at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.processComponentConfig(AbstractMergingProcessor.java:87)

          at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:72)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

      Caused by: java.lang.NoClassDefFoundError: de/r_kom/webshop/bean/entity/ChangedKundendaten_ZFA

          at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_24]

          at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_24]

          at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_24]

          at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65)

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)

          ... 11 more

      Caused by: java.lang.ClassNotFoundException: de.r_kom.webshop.bean.entity.ChangedKundendaten_ZFA from [Module "deployment.webshop.ear.services.jar:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)

          ... 16 more

       

      09:21:28,587 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "webshop.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"webshop.ear\".\"services.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"webshop.ear\".\"services.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"services.jar\" of deployment \"webshop.ear\""}}

      09:21:28,612 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment entities.jar in 24ms

      09:21:28,612 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment services.jar in 25ms

      09:21:28,616 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment webshop.ear in 29ms

      09:21:28,618 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"webshop.ear\".\"services.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"webshop.ear\".\"services.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"services.jar\" of deployment \"webshop.ear\""}}}}

       

       

      Last time I tried deploying the very same .ear (no changes made since then) I got a different error log saying:

       

      16:14:43,105 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.module.service."

      deployment.webshop.ear".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.webshop.ear".main: Failed to load module: deployment.webshop.ear:main
           at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:67)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: org.jboss.modules.ModuleNotFoundException: Module entities.jar:main is not found
          at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:121)
          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:245)
           at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:194)
          at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:97)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:176)
           at org.jboss.modules.Module.linkExports(Module.java:923)
          at org.jboss.modules.Module.linkExports(Module.java:846)
          at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1148)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:180)
           at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:172)
          at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:63)
          ... 5 more

       

      16:14:43,105 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.module.service."deployment.webshop.ear.entities.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.webshop.ear.entities.jar".main: Failed to load module: deployment.webshop.ear.entities.jar:main
           at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:67) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: org.jboss.modules.ModuleNotFoundException: entities.jar:main
           at org.jboss.modules.ModuleLoader$FutureModule.getModule(ModuleLoader.java:445)
          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:232)
          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:194)
           at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:97)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:176)
          at org.jboss.modules.Module.linkExports(Module.java:923)
           at org.jboss.modules.Module.linkExports(Module.java:846)
          at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1148)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:180)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:172)
           at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:63) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
          ... 5 more

       

      16:14:43,107 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.module.service."deployment.webshop.ear.services.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.webshop.ear.services.jar".main: Failed to load module: deployment.webshop.ear.services.jar:main
           at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:67) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: org.jboss.modules.ModuleNotFoundException: entities.jar:main
           at org.jboss.modules.ModuleLoader$FutureModule.getModule(ModuleLoader.java:445)
          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:232)
          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:194)
           at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:97)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:176)
          at org.jboss.modules.Module.linkExports(Module.java:923)
           at org.jboss.modules.Module.linkExports(Module.java:846)
          at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1148)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:180)
          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:172)
           at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:63) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
          ... 5 more

       

      16:14:43,311 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "webshop.ear" was rolled back with failure message {"Failed services" => {"jboss.module.service.\"deployment.webshop.ear.services.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear.services.jar\".main: Failed to load module: deployment.webshop.ear.services.jar:main","jboss.module.service.\"deployment.webshop.ear\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear\".main: Failed to load module: deployment.webshop.ear:main","jboss.module.service.\"deployment.webshop.ear.entities.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear.entities.jar\".main: Failed to load module: deployment.webshop.ear.entities.jar:main"}}
      16:14:43,317 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment entities.jar in 6ms
      16:14:43,318 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment services.jar in 6ms
      16:14:43,324 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment webshop.ear in 12ms
      16:14:43,325 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.module.service.\"deployment.webshop.ear.services.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear.services.jar\".main: Failed to load module: deployment.webshop.ear.services.jar:main","jboss.module.service.\"deployment.webshop.ear\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear\".main: Failed to load module: deployment.webshop.ear:main","jboss.module.service.\"deployment.webshop.ear.entities.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.webshop.ear.entities.jar\".main: Failed to load module: deployment.webshop.ear.entities.jar:main"}}}}

       

      Tanks in advance for the help!