javax.persistence.PersistenceException: [PersistenceUnit: entityManager] Unable to build EntityManagerFactory

redhat.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.infinispan.remoting.ReplicationQueueImpl cannot be cast to org.infinispan.remoting.ReplicationQueue

      at org.infinispan.configuration.cache.LegacyConfigurationAdaptor.adapt()
    2. Infinispan Core
      DefaultCacheManager.defineConfiguration
      1. org.infinispan.configuration.cache.LegacyConfigurationAdaptor.adapt(LegacyConfigurationAdaptor.java:306)
      2. org.infinispan.manager.DefaultCacheManager.defineConfiguration(DefaultCacheManager.java:468)
      3. org.infinispan.manager.DefaultCacheManager.defineConfiguration(DefaultCacheManager.java:443)
      3 frames
    3. JBoss Application Server: Infinispan Subsystem
      DefaultEmbeddedCacheManager.defineConfiguration
      1. org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.defineConfiguration(DefaultEmbeddedCacheManager.java:77)
      1 frame
    4. A Hibernate O/RM Module
      InfinispanRegionFactory.start
      1. org.hibernate.cache.infinispan.InfinispanRegionFactory.defineGenericDataTypeCacheConfigurations(InfinispanRegionFactory.java:492)
      2. org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:318)
      2 frames
    5. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:70)
      2. org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:40)
      3. org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:35)
      4. org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91)
      5. org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176)
      6. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)
      7. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
      8. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:264)
      9. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1762)
      9 frames
    6. Hibernate EJB
      HibernatePersistence.createContainerEntityManagerFactory
      1. org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
      2. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920)
      3. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
      4. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:92)
      4 frames
    7. JPA
      PersistenceUnitServiceImpl$1.run
      1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)
      2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)
      3. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)
      3 frames
    8. 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
    9. JBoss Threads
      JBossThread.run
      1. org.jboss.threads.JBossThread.run(JBossThread.java:122)[jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]
      1 frame