2 Replies Latest reply on Sep 2, 2008 4:56 PM by Olivier Thierry

    2.1.0.BETA1:  two components

    Nicola Ben Novice

      Hi,
      I tried seam2.1.0.BETA1 (from A1) and always receive this:


      15:28:19,236 INFO  [Initialization] initializing Seam
      15:28:19,266 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
      15:28:19,267 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
      15:28:19,267 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
      15:28:19,269 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
      15:28:19,273 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.ui.EntityConverter
      15:28:19,273 ERROR [[/uniacque]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.IllegalStateException: Two components with the same name and precedence - component name: org.jboss.seam.ui.EntityConverter, component classes: org.jboss.seam.ui.converter.EntityConverter, org.jboss.seam.ui.EntityConverter
           at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:522)
           at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:801)
           at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:748)
           at org.jboss.seam.init.Initialization.init(Initialization.java:608)



      I have already:
      1) cleaned jboss' /tmp and work/
      2) checked from the presence of a second seam.properties


      I really can find the second component....any suggestions?


      Thank you,
      N

        • 1. Re: 2.1.0.BETA1:  two components
          Bernard Labno Master

          Show your built archive structure, especially the location of jars. Most probably you have two jboss-seam.jars.

          • 2. Re: 2.1.0.BETA1:  two components
            Olivier Thierry Apprentice

            If you use Maven, be aware that when adding jboss-seam-debug or jboss-seam-ui dependencies to your web project, it also adds the jboss-seam transitive dependency while it is already present in ear. If this is your case, you will have to add an exclusion in pom.xml file :


            <dependency>
               <groupId>org.jboss.seam</groupId>
               <artifactId>jboss-seam-ui</artifactId>
               <exclusions>
                  <exclusion>
                     <groupId>org.jboss.seam</groupId>
                     <artifactId>jboss-seam</artifactId>
                  </exclusion>
               </exclusions>
            </dependency>