Hey,
my first Hibernate trial ends up with the following error message
(see below)
for every persistent class:
in the example, zenodot.database.entities.Article is the persistent class.
It seems that the cglib class net.sf.cglib.proxy.Enhancer cannot be found.
However, I have cglib in my class path (exactly that version 2.1.3 which comes with Hibernate 3.1.2). That jar contains the Enhancer class.
What is wrong?
In the end the programm which lists all entries of a database fails with a NullPointerException except the simple case when listing entries from a table without any associations.
Quote:
9947 [main] ERROR org.hibernate.proxy.BasicLazyInitializer - CGLIB Enhancement failed: zenodot.database.entities.Article
java.lang.NoClassDefFoundError: while resolving class: net.sf.cglib.proxy.Enhancer
at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(java.lang.Class, java.lang.Class[]) (Unknown Source)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(java.lang.String, java.lang.Class, java.util.Set, java.lang.reflect.Method, java.lang.reflect.Method, org.hibernate.type.AbstractComponentType) (Unknown Source)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(org.hibernate.mapping.PersistentClass, org.hibernate.property.Getter, org.hibernate.property.Setter) (Unknown Source)
at org.hibernate.tuple.AbstractEntityTuplizer.AbstractEntityTuplizer(org.hibernate.tuple.EntityMetamodel, org.hibernate.mapping.PersistentClass) (Unknown Source)
at org.hibernate.tuple.PojoEntityTuplizer.PojoEntityTuplizer(org.hibernate.tuple