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

hibernate.org | 3 months ago
  1. 0

    Hibernate Community • View topic - Hibernate OGM 4.1 Wildfly 8.1 MongoDB cant persist entity

    hibernate.org | 3 months ago
    javax.persistence.PersistenceException: [PersistenceUnit: mongoUnit] Unable to build Hibernate SessionFactory
  2. 0

    Hibernate 4.3.5 Unable to load class [oracle.jdbc.driver.OracleDriver]_Java_Programering

    programering.com | 7 months ago
    org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [oracle.jdbc.driver.OracleDriver]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. davidvanlaatum 1 times, last 1 month ago
  2. MoYapro 1 times, last 5 months ago
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    Could not load requested class : org.hibernate.ogm.dialect.mongodb.MongoDBDialect

    at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass()
  2. org.hibernate.boot
    ClassLoaderServiceImpl$AggregatedClassLoader.findClass
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:228)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    1 frame
  3. Java RT
    Class.forName
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[rt.jar:1.7.0_25]
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[rt.jar:1.7.0_25]
    3. java.lang.Class.forName0(Native Method)[rt.jar:1.7.0_25]
    4. java.lang.Class.forName(Class.java:270)[rt.jar:1.7.0_25]
    4 frames
  4. org.hibernate.boot
    ClassLoaderServiceImpl.classForName
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:240)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    1 frame
  5. Hibernate Object Grid Mapper
    GridDialectInitiator.initiateService
    1. org.hibernate.ogm.util.configurationreader.impl.ClassPropertyReaderContext.getClassFromString(ClassPropertyReaderContext.java:124)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    2. org.hibernate.ogm.util.configurationreader.impl.ClassPropertyReaderContext.getTypedValue(ClassPropertyReaderContext.java:95)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    3. org.hibernate.ogm.util.configurationreader.impl.PropertyReaderContext.getValue(PropertyReaderContext.java:104)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    4. org.hibernate.ogm.dialect.impl.GridDialectInitiator.initiateService(GridDialectInitiator.java:56)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    5. org.hibernate.ogm.dialect.impl.GridDialectInitiator.initiateService(GridDialectInitiator.java:40)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    5 frames
  6. Hibernate
    AbstractServiceRegistryImpl.getService
    1. org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    2. org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:251)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    3. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:225)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    4. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    4 frames
  7. org.hibernate.ogm
    SingleTableOgmEntityPersister.<init>
    1. org.hibernate.ogm.persister.OgmEntityPersister.<init>(OgmEntityPersister.java:121)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    2. org.hibernate.ogm.persister.SingleTableOgmEntityPersister.<init>(SingleTableOgmEntityPersister.java:35)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    2 frames
  8. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[rt.jar:1.7.0_25]
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[rt.jar:1.7.0_25]
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[rt.jar:1.7.0_25]
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)[rt.jar:1.7.0_25]
    4 frames
  9. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    2. org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    3. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:401)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    4 frames
  10. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl$4.perform
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
    2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
    2 frames
  11. org.hibernate.boot
    ClassLoaderServiceImpl.withTccl
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397)[hibernate-core-4.3.5.Final.jar:4.3.5.Final]
    1 frame
  12. org.hibernate.jpa
    HibernatePersistenceProvider.createContainerEntityManagerFactory
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
    2. org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
    2 frames
  13. Hibernate Object Grid Mapper
    HibernateOgmPersistence.createContainerEntityManagerFactory
    1. org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(HibernateOgmPersistence.java:106)[hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
    1 frame
  14. JPA
    PersistenceUnitServiceImpl$1$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:318)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
    2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1100(PersistenceUnitServiceImpl.java:67)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
    3. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
    4. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
    4 frames
  15. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)[rt.jar:1.7.0_25]
    1 frame
  16. WildFly Security Manager
    WildFlySecurityManager.doChecked
    1. org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
    1 frame
  17. JPA
    PersistenceUnitServiceImpl$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)[wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
    1 frame
  18. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_25]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_25]
    3. java.lang.Thread.run(Thread.java:724)[rt.jar:1.7.0_25]
    3 frames
  19. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:122)
    1 frame