[seam-issues] [JBoss JIRA] (SOLDER-316) Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies

Tomas Remes (JIRA) jira-events at lists.jboss.org
Mon Feb 6 07:20:48 EST 2012


    [ https://issues.jboss.org/browse/SOLDER-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664419#comment-12664419 ] 

Tomas Remes commented on SOLDER-316:
------------------------------------

I believe that this has been fixed in Solder 3.1.0.Final. Can you please try it using Solder Final?
                
> 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.
> Originally reported as #SEAM-132

--
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