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

    problem instrumenting hibernate classes with seam 2.0.0B1 (p

    zdaler

      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">
       </taskdef>
       <instrument>
       <fileset dir="${jar.dir}">
       <include name="**/entity/**/*.class" />
       </fileset>
       </instrument>
       </target>


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

      BUILD FAILED
      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 ?

      Regards,

      Zdal