I\'m trying to prototype some pretty simple Hibernate code originating from a tutorial and am getting an error I don\'t understand deep in cglib2 (the full stack trace is at
You have mismatching versions of cglib and ASM. Stacktrace tells "net.sf.cglib.core.DebuggingClassWriter overrides final method visit", in other words net.sf.cglib.core.DebuggingClassWriter which extends org.objectweb.asm.ClassWriter tries to override final method visit, which of course fails.
For example maven dependendy for cglib 2.2.2 pulls asm 3.3.1, so this is one combination worth of trying.