Description of problem:
A CDI extension has a BeforeShutdown event handler that looks up the UserTransaction and performs a clean-up operation. If the application is undeployed, all works as expected, but EAP is shut down (gracefully), the lookup fails.
It looks like EAP is stopping the subsystems before firing the CDI event.
Version-Release number of selected component (if applicable):
The issue is reproducible with the reproducer attached to Red Hat support case 01487736.
Steps to Reproduce:
Comment #16 in the associated support case.
Lookup fails in BeforeShutdown handler because NamingStore is null.
NamingStory should not be null.
Possibly fixed upstream in https://issues.jboss.org/browse/WFLY-1886.
Setting status to verified.
Reproduced with provided reproducer, then verified it's gone with 6.4.5.CP.CR1.
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.