1 Reply Latest reply on Jul 30, 2013 11:00 AM by Stephen Coy

    JBoss 7 migration problems

    Bojan Gaspar Newbie

      Hi,

       

      I am trying to migrate a project from jboss 5.1 to Jboss 7.1 but I run into some problems. I couldn't find any good step to step instructions. I think that the problem is that the application cant find some .jar files. I have created jboss-deployment-structure.xml in the standalone\deployments\myapp.ear\META-INF folder but nothing has changed.

       

      I would appreciate id someone would post an example with log4j module.

       

      Here is a part of my log:

      15:12:27,838 ERROR [org.jboss.web] (MSC service thread 1-8) JBAS018211: Could not load JSF managed bean class: myapp.ui.mbean.PdfGeneratorBBean

      15:12:28,801 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."myapp.ear"."myapp.webui.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myapp.ear"."myapp.webui.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "myapp.webui.war" of deployment "myapp.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

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

      Caused by: java.lang.RuntimeException: Error getting reflective information for class myapp.ui.mbean.TopClientBBean with ClassLoader ModuleClassLoader for Module "deployment.myapp.ear.myapp.webui.war:main" from Service Module Loader

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

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

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

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

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

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          ... 5 more

      Caused by: java.lang.NoClassDefFoundError: LLogger;

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

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

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

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

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          ... 10 more

      Caused by: java.lang.ClassNotFoundException: Logger from [Module "deployment.myapp.ear.myclient.bg.webui.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

          ... 15 more