Ambiguous Bean identity
atomfred Jan 4, 2012 11:17 AMHi, im using Seam 3.1.0.Final with maven, deploying on glassfish 3.11
When i deploy my application i get the following exception
org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name identity resolves to beans [Managed Bean [class org.jboss.seam.security.IdentityImpl] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.seam.security.IdentityImpl] with qualifiers [@Any @Default @Named]]
at org.jboss.weld.bootstrap.Validator.validateBeanNames(Validator.java:446)
at ...
Here is my pom.xml
<dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.seam</groupId> <artifactId>seam-bom</artifactId> <version>3.1.0.Final</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.seam.security</groupId> <artifactId>seam-security-api</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.jboss.seam.security</groupId> <artifactId>seam-security</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jboss.seam.faces</groupId> <artifactId>seam-faces</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jboss.seam.faces</groupId> <artifactId>seam-faces-api</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.jboss.seam.persistence</groupId> <artifactId>seam-persistence</artifactId> </dependency> <dependency> <groupId>org.jboss.solder</groupId> <artifactId>solder-impl</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jboss.solder</groupId> <artifactId>solder-api</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.jboss.solder</groupId> <artifactId>solder-tooling</artifactId> </dependency> </dependencies>
I just cannot imagine, why the IdentityImpl should be there twice. I have been trying to fix this for now 4 hours. But the problem does not appear to be in my project.
Has anyone experienced this before or any suggestions?