2 Replies Latest reply on Jul 24, 2007 5:37 PM by Norman Richards

    Seam JARs in system classpath?

    Todd Hough Newbie

      Is it possible to use Seam without packaging the various libraries in each application?

      I developed a Seam application on JBoss 4.0.5 with Seam 1.2.1 and everything works fine when the Seam libraries are packaged with the application.

      However, when I take those libraries out of my application and put them in the jsf-libs directory under jbossweb-tomcat55.sar I get a couple of errors. (I also tried adding them to conf/web.xml like myfaces-impl.jar)

      First it looks like JBoss is trying to deploy the jboss-seam.jar using the EJB 3.0 deployer which causes a NPE.

      Second it looks like my application loads and Seam initializes but can't find my local SFSBs.

      Any help would be appreciated.

        • 1. Re: Seam JARs in system classpath?
          Todd Hough Newbie

          Just wondering if anyone else is concerned with packaging so many Seam JARs into each web-app?

          In our Struts applications the JARs are also packaged with the application and we've had trouble convincing people to upgrade their libraries to stay current.

          On the other hand we've upgraded the application server multiple times and never had much trouble getting people to test/update apps for newer libraries packaged with the app server.

          It seems easier if I can deploy a single version of Seam to match the app server and keep them in step.

          • 2. Re: Seam JARs in system classpath?
            Norman Richards Master

            Seam is designed to be local to each application. While I think making it work in a shared-JAR environment would be a nice thing, you won't be able to make it work with Seam as it exists now.