1 Reply Latest reply on Jan 4, 2012 4:20 PM by lightguard

    Ambiguous Bean identity

    atomfred

      Hi, 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?




        • 1. Re: Ambiguous Bean identity
          lightguard

          I don't see it in the pom anywhere, but you have the security jar in there twice somewhere. Try a mvn dependency:tree and see if something is a miss with the security versions somewhere.