[
https://issues.jboss.org/browse/AS7-4786?page=com.atlassian.jira.plugin.s...
]
Scott Marlow updated AS7-4786:
------------------------------
Fix Version/s: 7.2.0.Alpha1
Git Pull Request:
https://github.com/jbossas/jboss-as/pull/2407 (was:
https://github.com/jbossas/jboss-as/pull/2407)
Affects Version/s: 7.1.1.Final
Workaround Description:
1. Start the AS with -Dorg.jboss.server.bootstrap.maxThreads=3
You might have to use a higher number for maxThreads (set to 2 + number of persistence
units with "hibernate.session_factory_name".)
OR
2. Remove "hibernate.session_factory_name" properties from the persistence.xml
<property name="hibernate.session_factory_name"
value="java:global/hibernate/SessionFactory"/>
Component/s: JPA / Hibernate
Forum Reference:
https://community.jboss.org/thread/200411
Added link to user forum discussion of this issue.
MSC controller hangs when loading an ear with multiple presistance
units on a single threaded machine
-----------------------------------------------------------------------------------------------------
Key: AS7-4786
URL:
https://issues.jboss.org/browse/AS7-4786
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 7.1.1.Final
Environment: Centos 6, single core lib-virt VM
Reporter: Wouter De Borger
Assignee: Scott Marlow
Labels: hibernate, naming, race
Fix For: 7.2.0.Alpha1
Attachments: hungas7.txt
When deploying an EAR with two persistence units on single core machines, the server
hangs.
When increasing the number of cores to two, the same server just works.
I traced the bug to the method in
org.jboss.as.naming.WritableServiceBasedNamingStore.unbind
The container attempts to register "hibernate/SessionFactory" twice.
The first time it works, the second time it hangs on the wait statement.
I suspect a race condition in the ServiceControllerImpl.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira