[
https://issues.jboss.org/browse/WFLY-11978?page=com.atlassian.jira.plugin...
]
Darryl Miles commented on WFLY-11978:
-------------------------------------
Ok both JPA projects have persistence.xml the trigger seems to be the use of:
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=true
As in:
<persistence version="2.2"
xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
<persistence-unit name="blah-blah.jpa.project1">
<!-- ... SNIP ... -->
<properties>
<!-- ... SNIP ... -->
<property name="hibernate.cache.use_second_level_cache"
value="true"/>
<property name="hibernate.cache.use_query_cache"
value="true"/>
<!-- ... SNIP ... -->
Remove these 2 line and all is well on shutdown.
EAR with 2+ JPA does not shutdown cleanly
-----------------------------------------
Key: WFLY-11978
URL:
https://issues.jboss.org/browse/WFLY-11978
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 16.0.0.Final
Environment: Windows JDK8 WF16
Reporter: Darryl Miles
Assignee: Scott Marlow
Priority: Major
Attachments: td8948.txt
EAR with 2+ JPA does not shutdown cleanly.
I see in the logs each JPA project have an entry:
WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service
'blah....jpa.project1'
WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service
'blah....jpa.project2'
then a few lines later:
WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service
'blah....jpa.project2'
I never see the "phase 1 of 2" entry for "jpa.project1" in the log.
The container will wait 300 seconds and timeout.
The management console during the time shows
Operation: undeploy
Execution Status: awaiting-stablility.
The container is killed and the configuration.xml still contains the EAR deployment info,
as undeploy did not complete.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)