Jboss AS7 deployment issue when using java1.7
ercraj25 Jan 9, 2013 9:48 AMHi,
We are tyring to migrate from weblogic to JBOSS server and upgrading our source from Java1.5 to Java1.7
The JBOSS Seever being used is EAP6.0.0 and JVM is java1.7.
The code compiled with java1.5 and java1.6 version works well but not the code compiled with Java1.7.
The below is the error message thrown. Kindly clarify the java version issue with the JBOSS server.
The logs are provided below
16:03:00,053 DEBUG [org.jboss.modules] (MSC service thread 1-2) Module deployment.elmaudit.war:main defined by Service Module Loader
16:03:00,077 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."elmaudit.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."elmaudit.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "elmaudit.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_10]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_10]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.slma.elmnet.support.ChartServlet with ClassLoader ModuleClassLoader for Module "deployment.elmaudit.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
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:116) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
... 5 more
Caused by: java.lang.ClassFormatError: Illegal local variable table start_pc 32 in method com.slma.elmnet.support.ChartServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_10]
at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_10]
at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_10]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
... 10 more
16:03:00,092 INFO [org.jboss.as.server] (host-controller-connection-threads - 1) JBAS015870: Deploy of deployment "elmaudit.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"elmaudit.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"elmaudit.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"elmaudit.war\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.slma.elmnet.support.ChartServlet with ClassLoader ModuleClassLoader for Module \"deployment.elmaudit.war:main\" from Service Module Loader
Caused by: java.lang.ClassFormatError: Illegal local variable table start_pc 32 in method com.slma.elmnet.support.ChartServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V"}}
16:03:00,138 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment elmaudit.war in 51ms