Announcement Announcement Module
Collapse
No announcement yet.
objectweb.asm errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • objectweb.asm errors

    Hi

    I'm new to spring and while trying to run some sample code i got ClassDefNotFound exceptions for objectweb.asm classes.
    I followed the advice I found in these forums and downloaded cglib-full-2.0.2.jar and now I get the following exception:

    ERROR (AbstractStartup.java:73) - Caught exception while initializing:
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [core-beans.xml
    ]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: visit
    java.lang.NoSuchMethodError: visit
    at net.sf.cglib.core.ClassEmitter.begin_class


    could anyone plz help?

    Thanks in advance,

    naor

  • #2
    You need to make sure that you're including the asm.jar and asm-attr.jar files.

    If you're using hibernate - appears likely, then make sure to use the versions of those JARs that come with the Hibernate distribution.

    I tried downloading the ASM libraries off the site for ASM and they seemed incompatible.

    Anyway, use the Hibernate distributed versions and all should be well.


    Joe

    Comment


    • #3
      Also, make sure you don't have multiple versions of CGLIB on your classpath, or any left over ASM JARs.

      Rob

      Comment

      Working...
      X