"ISPN000371: Cannot remove cache configuration" in JBoss EAP
Issue
- An application using the legacy Hibernate interface (
SessionFactory/Session) is deployed with level 2 cache enabled- A custom cache region
my-cache-oneis configured referencing a custom cache template in thestandalone*.xmlordomain.xml
- A custom cache region
-
During shutdown of the JBoss EAP JVM, a WARN message is recorded in the
server.log... MSC000004: Failure during stop of service org.wildfly.clustering.infinispan.cache-configuration.hibernate.my-cache-configs.my-cache-one: java.lang.IllegalStateException: ISPN000371: Cannot remove cache configuration 'my-cache-configs.my-cache-one' because it is in use
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7
- Hibernate 5 (legacy
SessionFactory/Sessioninterface) - Infinispan 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
