[seam-issues] [JBoss JIRA] Updated: (SEAMFACES-118) Deployment to Glassfish 3.1 fails with "WELD-001409 Ambiguous dependencies for type [Flash]"

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu Mar 24 22:33:45 EDT 2011


     [ https://issues.jboss.org/browse/SEAMFACES-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated SEAMFACES-118:
------------------------------------

         Assignee: Brian Leathem
    Fix Version/s: 3.0.0.Final


A duplicate producer for the JSF flash seems to have crept into the codebase.  I will remove it.

Thanks for reporting this!

> Deployment to Glassfish 3.1 fails with "WELD-001409 Ambiguous dependencies for type [Flash]"
> --------------------------------------------------------------------------------------------
>
>                 Key: SEAMFACES-118
>                 URL: https://issues.jboss.org/browse/SEAMFACES-118
>             Project: Seam Faces
>          Issue Type: Bug
>          Components: CDI Integration
>    Affects Versions: 3.0.0.CR2
>         Environment: Glassfish 3.1
> Apache Maven 3.0.2 (r1056850; 2011-01-09 08:58:10+0800)
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_AU, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>            Reporter: Craig Ringer
>            Assignee: Brian Leathem
>              Labels: compatibility, glassfish
>             Fix For: 3.0.0.Final
>
>
> Deploying Seam Faces to Glassfish 3.1 fails if a class is present that has an injection point for the Flash scope, ie "@Inject private javax.faces.context.Flash flash". The deployment failure suggests that there is an ambiguous dependency caused by multiple Flash producers within Seam Faces its self:
> org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [Flash] with qualifiers [@Default] at injection point [[field] @Inject private com.mycompany.glassfishseamfacesflashinjection.InjectionTest.flash]. Possible dependencies [[Producer Method [Flash] with qualifiers [@Any @Default] declared as [[method] @Produces @RequestScoped public org.jboss.seam.faces.environment.FacesFlashProducer.getFlash()], Producer Method [Flash] with qualifiers [@Any @Default] declared as [[method] @Produces @RequestScoped public org.jboss.seam.faces.context.FlashProducer.getFlash()]]]
> Full exception and server log here:
> https://github.com/ringerc/scrapcode/blob/master/testcases/javaee/glassfish-seamfaces-flash-injection/README.txt
> I've put together a minimal test case here:
> https://github.com/ringerc/scrapcode/tree/master/testcases/javaee/glassfish-seamfaces-flash-injection

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list