Ok, have some patience I'm new at this. Found I was missing lots of other jars (dom4j, commons-logging, commons-collections, cglib, asm). Added them and got a bit farther. Now I am getting the following when it tries to build a SessionFactory:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
at org.hibernate.impl.SessionFactoryImpl.buildCurrentSessionContext(SessionFactoryImpl.java:946)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:311)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at golfbase.golfBase.testHibernate(golfBase.java:122)
at golfbase.golfBase.<init>(golfBase.java:51)
at golfbase.golfBase.main(golfBase.java:66)
Looks like I'm missing some kind of java extension? I'm not using J2EE, just J2SE. Is that the problem?
|