I, too, am getting the error:
java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Configuration.<init>(Lorg/hibernate/cfg/SettingsFactory;)V from class org.hibernate.ejb.Ejb3Configuration
when executing this line:
emFactory = Persistence.createEntityManagerFactory("practice");
I am following along in the Java Persistence with Hibernate book trying to learn Hibernate. Everything was going very well until they switched from SessionFactory to EntityManagerFactory. I am using:
I don't think it is because of an old hibernate jar. But Hibernate is new to me. Any ideas?