Saturday, November 24, 2012

Hibernate Error : java.lang.NoClassDefFoundError: org/objectweb/asm/Type

This is the common error we will be getting when working on the Hibernate.
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
 at net.sf.cglib.core.TypeUtils.parseType(
 at net.sf.cglib.core.KeyFactory.(
 at net.sf.cglib.proxy.Enhancer.(
 at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(
 at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(
 at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(
 at org.hibernate.tuple.entity.AbstractEntityTuplizer.(

This was due to the one of the asm jar missing in your /WEB-INF/lib directory. You can download it from their official directory ASM, or you can use the springsource object jar, which can be downloaded here

Happy Programming !!!

1 comment: