[jboss-jira] [JBoss JIRA] (WFLY-9821) SingletonProvider may be incorrectly initialized with RegistrySingletonProvider
Martin Kouba (JIRA)
issues at jboss.org
Fri Feb 16 05:46:00 EST 2018
[ https://issues.jboss.org/browse/WFLY-9821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kouba updated WFLY-9821:
-------------------------------
Description:
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...}}.
was:
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 deployment fail with {{java.lang.RuntimeException: SingletonProvider is already initialized...}}.
> 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
>
> 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...}}.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list