Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1.3
Hibernate Tools version: 3.2.0 Beta 8
Eclipse version: 3.2.1
This is probably a dumb question as I am a new Hibernate user. Hope you can help !
I am using Eclipse and the Hibernate Tools version above and trying to use annotations from the Tools libs. I am using sample code from the Apress book Beginning Hibernate. However, when I try to run this code :
SessionFactory factory = config.configure().buildSessionFactory();
I get this error :
Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Configuration.xmlHelper from class org.hibernate.cfg.AnnotationConfiguration
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:655)
Looking at the code in \src, org.hibernate.cfg.AnnotationConfiguration does indeed appear to be attempting this access, which is puzzling.
Any help is appreciated ! Thanks in advance for your attention.
ethan