2 Replies Latest reply on May 10, 2011 8:17 AM by alexeicu

    seam components with same name in different application

    alexeicu

      Hi i have two seam component with a same name Ex: authenticator in different seam application, when i deploy them in the same jboss app I got this error




      Two components with the same name and precedence - component name: authenticator, component classes: oss.business.appmanager.auth.actions.Authenticator, oss.business.appmanager.auth.actions.Authenticator



      When I deploy them in debug configuration they work ok, but in production don't work.


      Please any help !!!

        • 1. Re: seam components with same name in different application
          aareshchanka
          check your

          `WEB-INF\jboss-web.xml`

          file,



          `<!DOCTYPE jboss-web PUBLIC
              "-//JBoss//DTD Web Application 4.2//EN"
              "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
          <jboss-web> 
              <class-loading java2ClassLoadingCompliance=false>
                  <loader-repository>
                      seam.jboss.org:loader=appName
                      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                  </loader-repository>
              </class-loading>
          </jboss-web>`



          seam.jboss.org:loader=appName

          property should be different for each application.

          then all components will be loaded in different class context's.


          • 2. Re: seam components with same name in different application
            alexeicu

            Thanks !!!