I'm guessing that this is a bug. I just upgraded from 3.0beta4 to 3.0rc1 and now I'm receiving an error regarding the fact that I don't have Log4J installed. Until now, I've been happily been using JDK 1.4 logging (yes, I know Log4J is supposed to be better, but JDK 1.4 does what I need it to).
Hibernate version: hibernate-3.0rc1, hibernate-annotations-3.0alpha3
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Code:
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.hibernate.tuple.PojoTuplizer.<clinit>(PojoTuplizer.java:42)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:45)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:208)
at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:398)
at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:87)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:58)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
at mypackage.SessionManager.<clinit>(SessionManager.java:43)