]
Martin Kouba updated WFLY-9821:
-------------------------------
Fix Version/s: 12.0.0.CR1
SingletonProvider may be incorrectly initialized with
RegistrySingletonProvider
-------------------------------------------------------------------------------
Key: WFLY-9821
URL:
https://issues.jboss.org/browse/WFLY-9821
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 11.0.0.Final
Reporter: Martin Kouba
Assignee: Martin Kouba
Fix For: 12.0.0.CR1
If a non-CDI deployment (contains no beans.xml nor a bean with a bean defining annotation
nor a session bean) attempts to access the CDI container using {{CDI.current()}} before
{{TCCLSingletonService}} is started (and
{{org.jboss.weld.bootstrap.api.SingletonProvider}} initialized with
{{ModuleGroupSingletonProvider}}) then {{SingletonProvider}} is incorrectly initialized
with the default impl ({{RegistrySingletonProvider}}). As a result,
subsequent CDI deployments fail with {{java.lang.RuntimeException: SingletonProvider is
already initialized...}}.