We created one ear file, that contains three wars. More or less all the three war having same jar dependency . So we created this ear. Now there is no jar files inside the war,i moved all of the jar files into ear level. All functionality are working fine including DB call. But we are getting the following exception while accessing the web services:
Any idea for this issue.
Caused by: javax.faces.el.EvaluationException: java.lang.reflect.InvocationTargetException
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
... 48 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visit(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
Currently we are using asm-3.1.jar and cglib-2.2.jar. The same flow is working fine as a war, but it’s not working in ear.
Find the sparing and seam related jar files we have used:
cxf-api-2.1.jar
jboss-envers-1.2.7-hibernate-3.3.jar
jboss-seam-2.2.0.CR1.jar
jboss-seam-debug-2.2.0.CR1.jar
jboss-seam-ioc-2.2.0.CR1.jar
jboss-seam-jul-2.2.0.CR1.jar
jboss-seam-ui-2.2.0.CR1.jar
spring-2.5.jar
spring-aop-2.5.6.jar
spring-batch-core-2.0.0.RELEASE.jar
spring-batch-infrastructure-2.0.0.RELEASE.jar
spring-beans-2.5.6.jar
spring-context-2.5.6.jar
spring-core-2.5.6.jar
spring-jdbc-2.5.6.jar
spring-modules-cache-0.9.jar
spring-test-2.5.6.jar
spring-tx-2.5.6.jar
spring-ws-1.5.6-all.jar
spring-xml-1.0.3.jar
Any idea for this issue.