Reputation: 3
I'm using Eclipse and Hibernate to develope a J2EE web app. When running/debugging the web app, my hibernate-related code works just fine. But if I run a junit test that tests some of my hibernate-related code, I get an "Initial SessionFactory creation failed" error.
The specific error message is as follows: Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.hibernate.persister.collection.OneToManyPersister.(Lorg/hibernate/mapping/Collection;Lorg/hibernate/cache/access/CollectionRegionAccessStrategy;Lorg/hibernate/cfg/Configuration;Lorg/hibernate/engine/SessionFactoryImplementor;)V
Any comments or solutions are greatly appreciated!
Upvotes: 0
Views: 988
Reputation: 139921
Sounds like you are running your unit tests against a different version of the Hibernate library than you are compiling it against.
Upvotes: 1