[JBoss JIRA] (SOLDER-316) Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
by Hendy Irawan (JIRA)
Hendy Irawan created SOLDER-316:
-----------------------------------
Summary: Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
Key: SOLDER-316
URL: https://issues.jboss.org/browse/SOLDER-316
Project: Solder
Issue Type: Bug
Components: XML Configuration
Affects Versions: 3.1.0.Beta2
Environment: Seam Config 3.1.0.Beta2, JBoss AS 7.1.0.CR1b
Reporter: Hendy Irawan
Simply including seam-config-xml causes
{code}
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.seam.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}
The webapp works fine without the seam-config-xml dependency.
With a configuration file, the problem above persists, and there's another problem with ambiguous dependency on our own beans.
Sample configuration: (in src/main/resources/META-INF/beans.xml )
{code}
<persistence:ProfilePhotoRepository>
<s:modifies />
<s:Named />
<s:ApplicationScoped />
<persistence:uploadPath>/home/ceefour/public_html/satukancinta-media
</persistence:uploadPath>
<persistence:publicUrl>http://ceefour.annafi/satukancinta-media/
</persistence:publicUrl>
</persistence:ProfilePhotoRepository>
{code}
throws:
{code}
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ProfilePhotoRepository] with qualifiers [@Default] at injection point [[field] @Inject com.satukancinta.ui.admin.UserShowAdmin.photoRepo]. Possible dependencies [[Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any @Default], Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any @Default]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}
I'm unable to use seam-config-xml at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (SEAM-132) Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
by Hendy Irawan (JIRA)
Hendy Irawan created SEAM-132:
---------------------------------
Summary: Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
Key: SEAM-132
URL: https://issues.jboss.org/browse/SEAM-132
Project: Seam 3 Distribution
Issue Type: Bug
Components: Common Dependencies
Affects Versions: 3.1.0.Final
Environment: Seam Config 3.1.0.Beta2, JBoss AS 7.1.0.CR1b
Reporter: Hendy Irawan
I can't find the project for Seam Config, so I'm putting it here.
Simply including seam-config-xml causes
{code}
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.seam.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}
The webapp works fine without the seam-config-xml dependency.
Sample configuration: (in src/main/resources/META-INF/beans.xml )
{code}
<persistence:ProfilePhotoRepository>
<s:modifies />
<s:Named />
<s:ApplicationScoped />
<persistence:uploadPath>/home/ceefour/public_html/satukancinta-media
</persistence:uploadPath>
<persistence:publicUrl>http://ceefour.annafi/satukancinta-media/
</persistence:publicUrl>
</persistence:ProfilePhotoRepository>
{code}
throws:
{code}
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ProfilePhotoRepository] with qualifiers [@Default] at injection point [[field] @Inject com.satukancinta.ui.admin.UserShowAdmin.photoRepo]. Possible dependencies [[Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any @Default], Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any @Default]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}
I'm unable to use seam-config-xml at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months