Status: Resolved (View Workflow)
Affects Version/s: 3.0.0.CR2
Fix Version/s: 3.0.0.Final
Component/s: CDI Integration
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"
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:
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:
I've put together a minimal test case here: