"HHH025017: Unable to retrieve CacheManager from JNDI [java:CacheManager/entity]" in JBoss EAP

Solution Verified - Updated -

Issue

  • Application managed Hibernate configured to use EAP bundled Infinispan
  • During deployment, an exception is encountered

    ... org.hibernate.cache.CacheException: HHH025017: Unable to retrieve CacheManager from JNDI [java:CacheManager/entity]
            at org.infinispan.hibernate.cache.commons.JndiCacheManagerProvider.locateCacheManager(JndiCacheManagerProvider.java:54)
            at org.infinispan.hibernate.cache.commons.JndiCacheManagerProvider.getEmbeddedCacheManager(JndiCacheManagerProvider.java:26)
            at org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.createCacheManager(InfinispanRegionFactory.java:278)
            at org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.start(InfinispanRegionFactory.java:248)
            at org.hibernate.cache.internal.EnabledCaching.<init>(EnabledCaching.java:82)
            at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:33)
            at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:24)
            at org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService(SessionFactoryServiceInitiator.java:30)
            at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:68)
            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
            ...
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2
    • 7.3
  • Hibernate 5.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In