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

Craig Ringer (JIRA) jira-events at lists.jboss.org
Thu Mar 24 21:55:45 EDT 2011


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


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:

SEVERE: Exception while loading the app : WELD-001409 Ambiguous dependencies for type [Flash] with qualifiers [@Default] at injection point [[field] @Inject private transient au.com.postnewspapers.classads.webui.AdSearchController.flashScope]. 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