[
https://issues.jboss.org/browse/WELD-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stuart Douglas closed WELD-788.
-------------------------------
Fix Version/s: 1.1.0.Final
Resolution: Rejected
According to the CDI spec pseudo scoped beans cannot have circular
dependencies, and @Singleton is a pseudo scope.
The workaround is to use @ApplicationScoped instead
> Circular dependency error with singleton instances
> --------------------------------------------------
>
> Key: WELD-788
> URL: https://issues.jboss.org/browse/WELD-788
> Project: Weld
> Issue Type: Bug
> Affects Versions: 1.1.0.CR1
> Reporter: Christopher Brock
> Fix For: 1.1.0.Final
>
>
> Exception in thread "main" org.jboss.weld.exceptions.DeploymentException:
> WELD-001443 Pseudo scoped bean has circular dependencies. Dependency path
> [Managed Bean [class
> org.jboss.seam.forge.shell.plugins.builtin.LsMavenPomPlugin] with qualifiers
> [...@any @Default], Managed Bean [class org.jboss.seam.forge.shell.ShellImpl]
> with qualifiers [...@any @Default], Managed Bean [class
> org.jboss.seam.forge.shell.command.fshparser.FSHRuntime] with qualifiers
> [...@any @Default], Managed Bean [class org.jboss.seam.forge.shell.ShellImpl]
> with qualifiers [...@any @Default]]
> Weld is complaining about circular dependencies between two classes (this is
> from Seam Forge), FSHRuntime and ShellImpl, which are both @Singleton. Given
> that, this error would appear to be misplaced.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues