2 Replies Latest reply on May 4, 2007 10:56 AM by Alex Savitsky

    Which JARS do we really need for a seam application?

    Toni Beckman Novice

      Hi,

      I have noticed for a while that the "jboss-seam-1.2.1.GA/lib/" directory contains many more jars besides those, which gets created during the build process, which are:

      jboss-seam-debug.jar
      jboss-seam-gen.jar
      jboss-seam-ioc.jar
      jboss-seam.jar
      jboss-seam-mail.jar
      jboss-seam-pdf.jar
      jboss-seam-remoting.jar
      jboss-seam-ui.jar

      If we want to use all the functionality currently available (ajax, richfaces, PDF, facelets and so on..), then which of those jars should be included:

      activation.jar
      ajax4jsf-1.1.1-SNAPSHOT.jar - DO WE NEED THIS TO USE AJAX4JSF?
      ant-antlr-1.6.5.jar
      ant.jar
      ant-launcher.jar
      antlr-2.7.6.jar
      ant-nodeps.jar
      commons-beanutils-1.7.0.jar
      commons-codec-1.3.jar
      commons-collections-3.1.jar
      commons-digester-1.6.jar
      commons-el-1.0.jar
      commons-lang-2.1.jar
      el-api.jar - WHAT ARE THOSE FOR?
      el-ri.jar - WHAT ARE THOSE FOR?
      hibernate-all.jar
      itext-2.0.1.jar - DO WE NEED THIS FOR PDF FUNCTIONALITY?
      javax.servlet.jsp.jar
      jboss-aop-jdk50.jar
      jboss-cache-jdk50.jar
      jboss-ejb3-all.jar
      jbpm-3.1.4.jar
      jcaptcha-all-1.0-RC4.jar
      jgroups.jar
      jsf-facelets.jar - NEEDED?
      jstl-1.1.0.jar - NEEDED?
      mail.jar
      mail-ra.jar
      myfaces-api-1.1.4.jar - NEEDED?
      myfaces-impl-1.1.4.jar - NEEDED?
      oscache-2.3.2.jar
      portlet-api-lib.jar
      richfaces-3.0.1-SNAPSHOT.jar - NEEDED FOR RICH FACES?
      servlet-api.jar
      spring.jar
      testng-4.5.1-jdk15.jar
      thirdparty-all.jar

      The readme.txt file says that :


      This directory contains all jars needed to compile Seam
      and run the unit tests.


      However, some of the jars I needed for my webapplication, like the el-* ones.


      The only jars required to run Seam in a full Java EE 5
      environment are:

      jbpm-3.1.1.jar
      thirdparty-all.jar


      And does that mean that we need those for JBoss too, or are you refering to other Java EE 5 environment/application servers?!

        • 1. Re: Which JARS do we really need for a seam application?
          Pete Muir Master

          build a skeleton project using seam-gen, deploy the ear, and take a look at what jars are included :) it does change as we upgrade to new versions of libraries.... generally you need far fewer to deploy than build!

          • 2. Re: Which JARS do we really need for a seam application?
            Alex Savitsky Novice

            To answer your questions about specific JARs you listed...

            ajax4jsf-1.1.1-SNAPSHOT.jar - DO WE NEED THIS TO USE AJAX4JSF? Required for Ajax4Jsf, along with oscache JAR. Also RichFaces need these, too

            el-api.jar - WHAT ARE THOSE FOR?
            el-ri.jar - WHAT ARE THOSE FOR? Both are part of JSF implementation (either RI or MyFaces) and are required.

            itext-2.0.1.jar - DO WE NEED THIS FOR PDF FUNCTIONALITY? Yes

            jsf-facelets.jar - NEEDED? Yes, if you use Facelets

            jstl-1.1.0.jar - NEEDED? Might be, if you use JSPs with JSF. If you use Facelets, this JAR is not required

            myfaces-api-1.1.4.jar - NEEDED?
            myfaces-impl-1.1.4.jar - NEEDED? Yes, but only if you use MyFaces JSF implementation. Not needed if you use RI

            richfaces-3.0.1-SNAPSHOT.jar - NEEDED FOR RICH FACES? Yes

            Also, some other JARs you listed are only needed for specific environments/tasks, such as Portlet JAR or JCaptcha

            HTH,

            Alex