Migration From Jboss 4.2.1 to Jboss 7.1.1
alisissa May 14, 2012 8:48 AMHi,
i have a java application running on a linux server with mysql database using Jboss 4.2.1 and now my company needs to migrate to Jboss 7.1.1. here is what I have done so far:
- I dowloaded Jboss 7.1.1 and started it.
- I deployed my application (3 projects) 2 jar outputs and 1 war output, the first jar output was deployed successfully but my problem is with the second one.
- The error I am getting is the below
java.lang.RuntimeException: Error getting reflective information for class tpg.tpgapp.sessions.CardValidatorBean with ClassLoader ModuleClassLoader for Module "deployment.TPGApp.jar: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: tpg/commons/exceptions/BusinessEntityFindException
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_04]
at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_04]
at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_04]
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: tpg.commons.exceptions.BusinessEntityFindException from [Module "deployment.TPGApp.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more
P.S. I am deploying the jar files by putting them in the deployemtn folder while jboss 7.1.1 is running and for the first one I am gettinga .deployed file but for the second I am getting .failed file.
Here is the output of the .failed file.
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"TPGApp.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"TPGApp.jar\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"TPGApp.jar\""}}}}
Any help will be highly appreciated.