[jboss-jira] [JBoss JIRA] (WFLY-1745) WeldServices may get into inconsistent state
Jozef Hartinger (JIRA)
jira-events at lists.jboss.org
Tue Jul 23 08:17:26 EDT 2013
Jozef Hartinger created WFLY-1745:
-------------------------------------
Summary: WeldServices may get into inconsistent state
Key: WFLY-1745
URL: https://issues.jboss.org/browse/WFLY-1745
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 8.0.0.Alpha3
Reporter: Jozef Hartinger
Assignee: Stuart Douglas
Fix For: 8.0.0.Beta1
WeldBootstrapService performs an initial bootstrap of the Weld container and also performs Weld shutdown when the service is stopping.
WeldStartService finishes initialization of Weld container and performs nothing on stop() (WeldBootstrapService is expected to shut down Weld).
WeldStartService has a dependency on WeldBootstrapService.
This works fine 99% of the time. However, if a dependency of WeldStartService is restarted (e.g. due to management operation), WeldStartService as its parent is also restarted but WeldBootstrapService is not.
As a result, WeldStartService expects to find Weld container in an early initialization phase and wants to finish initialization. However, since WeldBootstrapService was not restarted, the Weld container is still in the initialized state and deployment fails when WSS tries to finish initialization again.
To reproduce modify EjbRemoveUnitTestCase for test-session-remove.jar to contain empty beans.xml file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list