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>
instrument:
[instrument] starting instrumentation
BUILD FAILED
java.lang.NoSuchMethodError: net.sf.cglib.core.ClassNameReader.getClassInfo(Lorg/objectweb/asm/ClassReader;)[Ljava/lang/String;
The contents of thirdparty-all probably changed. I would suggest ensuring you have to the correct dependencies for instrumentation in your classpath outside thirdparty-all.jar (yes, we are working to improve our dependency management).