Deployment issue in JBOSS EAP 6.4

Posted on

Hi ,
I am facing the application deployment issue while deploy the application in JBOSS EAP 6.4 server with JDK 1.7 .
Issue :

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ecpcadmin]] (ServerService Thread Pool -- 220) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: java.lang.VerifyError: Expecting a stackmap frame at branch target 122
Exception Details:
com/tms/epc/preference/business/AbstractBusinessImpl.populateReadOnlyApplicationTracker_aroundBody36(Lcom/tms/epc/preference/business/AbstractBusinessImpl;Ljava/util/List;)Ljava/util/List; @23: ifeq
Expected stackmap frame at this location.
0000000: bb00 0559 b700 064d 2bb9 001c 0100 3a04
0000010: 1904 b900 1d01 0099 0063 1904 b900 1e01
0000020: 00c0 001f 3a06 2ab7 006e 3a08 2ab6 00c3
0000030: 3a0a 190a 1906 b600 20b6 0033 b600 c419
0000040: 0a19 06b6 00bc b600 c519 0a19 06b6 00be
0000050: b600 c619 0819 06b6 00c0 b600 9e19 0819
0000060: 06b6 00c1 b600 a019 0a19 08b6 00c7 2c19
0000070: 0ab9 0026 0200 57a7 ff99 2cb0

            at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_51]
            at java.lang.Class.privateGetDeclaredMethods( [rt.jar:1.7.0_51]
            at java.lang.Class.getDeclaredMethods( [rt.jar:1.7.0_51]
            at org.springframework.util.ReflectionUtils.getDeclaredMethods( [spring-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
            at org.springframework.util.ReflectionUtils.doWithMethods( [spring-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
            at org.springframework.util.ReflectionUtils.doWithMethods( [spring-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors( [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
            at [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]

I have googled for the issue it gave two solutions.

  1. Compile the source code with JDK 1.6 and deploy the application in JBOSS EAP 6.4+ JDK 1.7
  2. Skip the Byte verification at run time in JBOSS EAP 6.4 Server .

I don't want these above 2 approaches because our target is compile and run the application against JDK1.7 only and Skip the Byte verification in production environment is not suggestible.

Kindly give me the any other possible solution except the other solutions

Thanks in Advance