3 Replies Latest reply on Mar 3, 2007 5:11 AM by gavin.king

    Issue deploying multiple Seam webapps

    lswindale

      We've recently upgraded from Seam 1.0.1 to Seam 1.1.6. Previously we had jboss-seam.jar and jboss-seam-ui.jar in the jboss deploy directory. With the upgrade we've changed to the new structure where these jar's are packaged into the ear file.

      The first two apps we deployed worked fine... but when trying to deploy a 3rd seam app we get a deployment error. More precisely:

      java.lang.IllegalStateException: duplicate factory for: actor


      I'm assuming this is due to the fact that we have deployed multiple seam apps, each containing a copy of jboss-seam.jar (which contains the factory "actor"). Is this a bug or should I be taking a diferent approach with how we are deploying these apps and/or defining them in application.xml?

        • 1. Re: Issue deploying multiple Seam webapps
          davidwoolley

          You need to place each application in it's own class loader space

          This can be done with the jboss-app.xml in the META-INF directory of your ear

          <jboss-app>
          <loader-repository>
          seam.jboss.org:loader=<your unique identifier>
          </loader-repository>
          </jboss-app>

          • 2. Re: Issue deploying multiple Seam webapps
            lswindale

            Thanks very much! This was exactly my problem!

            In case you are wondering about it failing on the 3rd deployment instead of the 2nd... it turns out I had given the 2nd app a different identifier already, but the 3rd was a duplicate of the 1st, and I was always deploying in the same order. I was wondering why it wasn't failing on the 2nd deployment. Thanks so much for your help!

            • 3. Re: Issue deploying multiple Seam webapps
              gavin.king

               

              Previously we had jboss-seam.jar and jboss-seam-ui.jar in the jboss deploy directory. With the upgrade we've changed to the new structure where these jar's are packaged into the ear file.


              jboss-seam-ui.jar should go in WEB-INF/lib.