javax.persistence.PersistenceException: [PersistenceUnit: mongoUnit] Unable to build Hibernate SessionFactory

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • javax.persistence.PersistenceException: [PersistenceUnit: mongoUnit] Unable to build Hibernate SessionFactory at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] at java.security.AccessController.doPrivileged(Native Method)[rt.jar:1.7.0_25] at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_25] at java.lang.Thread.run(Thread.java:724)[rt.jar:1.7.0_25] at org.jboss.threads.JBossThread.run(JBossThread.java:122) Caused by: javax.persistence.PersistenceException: [PersistenceUnit: mongoUnit] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1225)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:119)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:853)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(HibernateOgmPersistence.java:106)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:318)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1100(PersistenceUnitServiceImpl.java:67)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final] ... 8 more Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.ogm.persister.SingleTableOgmEntityPersister at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:185)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:401)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final] ... 16 more Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.ogm.dialect.GridDialect] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:261)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:225)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.ogm.persister.OgmEntityPersister.<init>(OgmEntityPersister.java:121)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.ogm.persister.SingleTableOgmEntityPersister.<init>(SingleTableOgmEntityPersister.java:35)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[rt.jar:1.7.0_25] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[rt.jar:1.7.0_25] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[rt.jar:1.7.0_25] at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[rt.jar:1.7.0_25] at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] ... 20 more Caused by: org.hibernate.HibernateException: OGM000044: Cannot load class org.hibernate.ogm.dialect.mongodb.MongoDBDialect specified via configuration property 'hibernate.ogm.datastore.grid_dialect' at org.hibernate.ogm.util.configurationreader.impl.ClassPropertyReaderContext.getClassFromString(ClassPropertyReaderContext.java:127)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.ogm.util.configurationreader.impl.ClassPropertyReaderContext.getTypedValue(ClassPropertyReaderContext.java:95)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.ogm.util.configurationreader.impl.PropertyReaderContext.getValue(PropertyReaderContext.java:104)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.ogm.dialect.impl.GridDialectInitiator.initiateService(GridDialectInitiator.java:56)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.ogm.dialect.impl.GridDialectInitiator.initiateService(GridDialectInitiator.java:40)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:251)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] ... 29 more Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.ogm.dialect.mongodb.MongoDBDialect] at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:243)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at org.hibernate.ogm.util.configurationreader.impl.ClassPropertyReaderContext.getClassFromString(ClassPropertyReaderContext.java:124)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4] ... 35 more Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.ogm.dialect.mongodb.MongoDBDialect at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:228)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[rt.jar:1.7.0_25] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[rt.jar:1.7.0_25] at java.lang.Class.forName0(Native Method)[rt.jar:1.7.0_25] at java.lang.Class.forName(Class.java:270)[rt.jar:1.7.0_25] at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:240)[hibernate-core-4.3.5.Final.jar:4.3.5.Final] ... 36 more

    Users with the same issue

    Hronom
    Hronom1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    davidvanlaatum1 times, last one,
    Unknown visitor2 times, last one,
    MoYapro
    MoYapro1 times, last one,
    18 more bugmates