I was trying to write some tests, using the new embedded EJB container that comes with Glassfish v3, on some EJBs that use HibernateJPA. But I'm always getting the same error:
Code:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V
at org.glassfish.deployment.common.GenericAnnotationDetector.scanArchive(GenericAnnotationDetector.java:100)
I googled this exception and found out that this should be some incompatibility between the differents CGLIB versions used by these two APIs. But I didn't find a way to solve this.
Does anyone know a way to run my "Hibernate based" EJBs in this Glassfish embedded EJBContainer?