Hi all,
I've put hibernate2.jar in $JBOSS_HOME/server/default/lib, but when I try to use hibernate, the following error occurs:
java.lang.NoClassDefFoundError: net/sf/hibernate/collection/Set at net.sf.hibernate.type.TypeFactory.set(TypeFactory.java:200) at net.sf.hibernate.mapping.Set.getCollectionType(Set.java:29) at net.sf.hibernate.mapping.Collection.getType(Collection.java:275) at net.sf.hibernate.cfg.Binder.bindProperty(Binder.java:443) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:1070) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1050) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java: 285)
The magic: put odmg-3.0.jar in the lib dir ant it works.
How it's done: open net.sf.hibernate.collection.Set's source, and look at the line that says:
import org.odmg.DSet;
that explains it ;)
[]'s
Tony Lumpda