Skip to content

Instantly share code, notes, and snippets.

@ziparo
Created June 5, 2012 16:33
Show Gist options
  • Save ziparo/2876102 to your computer and use it in GitHub Desktop.
Save ziparo/2876102 to your computer and use it in GitHub Desktop.
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: geograph-persistence-unit] Unable to build EntityManagerFactory
   [junit]    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
   [junit]    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
   [junit]    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
   [junit]    at org.hibernate.ogm.jpa.HibernateOgmPersistence.createEntityManagerFactory(HibernateOgmPersistence.java:92)
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
   [junit]    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
   [junit]    at org.cloudtm.framework.ogm.HibOgmTxManager.<clinit>(HibOgmTxManager.java:27)
   [junit]    ... 27 more
   [junit] Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.ogm.persister.OgmEntityPersister
   [junit]    at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:185)
   [junit]    at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135)
   [junit]    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:386)
   [junit]    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1744)
   [junit]    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
   [junit]    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
   [junit]    ... 33 more
   [junit] Caused by: java.lang.NoSuchMethodException: org.hibernate.ogm.persister.OgmEntityPersister.<init>(org.hibernate.mapping.PersistentClass, org.hibernate.cache.spi.access.EntityRegionAccessStrategy, org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.engine.spi.Mapping)
   [junit] Caused by: java.lang.NoSuchMethodException: org.hibernate.ogm.persister.OgmEntityPersister.<init>(org.hibernate.mapping.PersistentClass, org.hibernate.cache.spi.access.EntityRegionAccessStrategy, org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.engine.spi.Mapping)
   [junit]    at java.lang.Class.getConstructor0(Class.java:2706)
   [junit] ERROR: Couldn't find any suitable TxManager
   [junit]    at java.lang.Class.getConstructor(Class.java:1657)
   [junit]    at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:161)
   [junit]    ... 38 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment