VerifyError when deploying EAR file on JBoss EAP 6.4
ramyang Sep 18, 2016 11:06 AMHello,
I'm trying to migrate a CXF SOAP service from JBoss 5 to JBoss 6, and I get the following error message when I deploy:
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.my.package.MyServiceBean with ClassLoader ModuleClassLoader for Module "deployment.MyService.ear.MyServiceEJB.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:53) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
... 5 more
Caused by: java.lang.VerifyError: (class: com/my/package/MyBean, method: performMyMethod signature: (Lcom/my/package/MyArgument;)Lcom/my/package/MyReturnType;) Incompatible argument to function
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_45]
at java.lang.Class.privateGetDeclaredFields(Class.java:2300) [rt.jar:1.6.0_45]
at java.lang.Class.getDeclaredFields(Class.java:1745) [rt.jar:1.6.0_45]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
... 9 more
Can someone please explain what this means, and what could be causing it? Preliminary searching has indicated that I might have a duplicate JAR file in my EAR. I tried deleting the duplicate JAR, but it still didn't fix the issue.