This content has been marked as final.
Show 3 replies
-
1. Re: Failed to stop persistence unit, because of Hibernate Infinispan cache provider in AS 7.1.3
oranheim Sep 23, 2012 7:22 AM (in response to oranheim)This error was my own fault, because I did not patch my custom standalone.xml correctly when upgrading to 7.1.3.Final.
<cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4"> </cache-container>
Config in persistence.xml
<property name="hibernate.cache.use_second_level_cache" value="true" /> <property name="hibernate.cache.use_query_cache" value="true" />
Now, during shutdown connections are closed and cleaned up.
13:03:48,752 INFO [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service 'musific-next.war#partsunit' 13:03:48,753 INFO [org.jboss.as.clustering.infinispan] JBAS010282: Stopped musific-next.war#partsunit.org.hibernate.cache.internal.StandardQueryCache cache from hibernate container 13:03:48,754 INFO [org.jboss.as.clustering.infinispan] JBAS010282: Stopped musific-next.war#partsunit.org.hibernate.cache.spi.UpdateTimestampsCache cache from hibernate container 13:03:48,756 INFO [org.infinispan.jmx.CacheJmxRegistration] ISPN000031: MBeans were successfully registered to the platform mbean server. 13:03:48,756 INFO [org.jboss.as.clustering.infinispan] JBAS010281: Started local-query cache from hibernate container 13:03:48,778 INFO [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService 13:03:48,778 INFO [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager 13:03:48,813 INFO [org.jboss.as.clustering.infinispan] JBAS010282: Stopped local-query cache from hibernate container 13:03:48,845 INFO [org.jboss.as.server.deployment] JBAS015877: Stopped deployment musific-next.war in 285ms 13:03:48,847 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.3.Final "Arges" stopped in 278ms
-
2. Re: Failed to stop persistence unit, because of Hibernate Infinispan cache provider in AS 7.1.3
smarlow Sep 24, 2012 11:30 AM (in response to oranheim)Good to hear, what were the previous (custom) standalone.xml settings for
cache-container?
-
3. Re: Failed to stop persistence unit, because of Hibernate Infinispan cache provider in AS 7.1.3
oranheim Sep 24, 2012 12:43 PM (in response to smarlow)In AS 7.1.1 the
cache-container
element did not declaremodule="org.jboss.as.jpa.hibernate:4"
. This is required in 7.1.3.