[seam-issues] [JBoss JIRA] (SEAM-132) Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
Tomas Remes (JIRA)
jira-events at lists.jboss.org
Mon Feb 6 03:05:48 EST 2012
[ https://issues.jboss.org/browse/SEAM-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664348#comment-12664348 ]
Tomas Remes commented on SEAM-132:
----------------------------------
Seam Config is part of Solder now. I think you have to use src/main/resources/META-INF/seam-beans.xml instead of beans.xml. For config examples you can check princess rescue and quiz example on github.com/seam/examples
> 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
More information about the seam-issues
mailing list