[
https://jira.jboss.org/jira/browse/WELD-234?page=com.atlassian.jira.plugi...
]
Santiago Pericas-Geertsen commented on WELD-234:
------------------------------------------------
When searching for a bean for the class com.sun.jcditest.webapp.TestExtensionBean,
Weld's bean manager finds two: one of type ManagedBean and one of type ExtensionBean,
and this causes the ambiguity reported. Should the search return only the ManagedBean in
this case? Or does the application need to pass additional info to disambiguate the
search?
Ambiguous dependencies error when obtaining/injecting a reference to
an Extension
---------------------------------------------------------------------------------
Key: WELD-234
URL:
https://jira.jboss.org/jira/browse/WELD-234
Project: Weld
Issue Type: Bug
Reporter: Paul Sandoz
Priority: Blocker
Fix For: 1.0.0.CR2
Attachments: jcditest.zip
When attempting to obtain a reference to an Extension (either programatically or via
@Inject) an exception is throw similar to the following:
org.jboss.weld.DeploymentException: Injection point has ambiguous dependencies.
Injection point: field
com.sun.jersey.samples.jcdibeans.resources.JCDIBeanPerRequestResource.teb;
Qualifiers:
[@javax.enterprise.inject.Default()]; Possible dependencies:
[org.jboss.weld.bean-deployment-Built-in-
Extension-foo.TestExtensionBean,
org.jboss.weld.bean-/Users/paulsandoz/Projects/jersey/branches/jersey-
1.1.4-ea-SNAPSHOT/samples/jcdi-beans-webapp/target/jcdi-beans-webapp/-ManagedBean-
foo.TestExtensionBean]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira