1 Reply Latest reply on Jul 3, 2007 6:32 PM by Pete Muir

    problem instrumenting hibernate classes with seam 2.0.0B1 (p

    Zalder R Newbie

      I was using the code below in my build.xml to instrument my entity classes to get the full advantage of hibernate's lazy property loading feature :

      <target name="instrument">
       <taskdef name="instrument" classpathref="build.classpath" classname="org.hibernate.tool.instrument.cglib.InstrumentTask">
       <fileset dir="${jar.dir}">
       <include name="**/entity/**/*.class" />

      Since I upgraded to seam 2.0.0B1 I get this error :
      [instrument] starting instrumentation

      java.lang.NoSuchMethodError: net.sf.cglib.core.ClassNameReader.getClassInfo(Lorg/objectweb/asm/ClassReader;)[Ljava/lang/String;

      If I replace the thirdparty-all.jar file with the previous one (the one shipped with previous versions of seam), the error is gone again and instrumentation works.

      Maybe something is wrong with that jar ?