[jboss-user] [JBoss Seam] - problem instrumenting hibernate classes with seam 2.0.0B1 (p

zdaler do-not-reply at jboss.com
Tue Jul 3 13:02:22 EDT 2007


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 :
anonymous wrote : 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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060082#4060082

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060082



More information about the jboss-user mailing list