bmw0128
bmw0128

Reputation: 13698

Spring and JSF and JPA

I'm integrating these in a basic web application, being deployed in Glassfish. Upon startup, the error I am getting is:

nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)

The closest solution I can find has something to do with asm.jar and cglib-nodep-2.1_3.jar. I added these jars and still got the error. Then I deleted asm.jar only, and still got the error.

Anyone have any ideas?

Upvotes: 0

Views: 581

Answers (1)

ChssPly76
ChssPly76

Reputation: 100706

Looks like either you have a wrong version of asm.jar somewhere in your classpath or you have some other class depends on asm.jar that's different with the one bundled with cglib-nodep.jar.
Try replacing it with regular cglib.jar and its dependencies (including asm.jar) packaged separately.

Upvotes: 2

Related Questions