1 Reply Latest reply on Nov 30, 2004 9:20 AM by kamal_tavant

    tips: external JAR references from ejb-app-JAR

      Suppose that you want build the EJB-APP "MYAPP.EAR"
      packed in MYAPP.jar which needs MYLIB.jar.

      To obtain a functional EAR you must build this
      structure:

      MYAPP.EAR
      |
      |-> META-INF/
      |........|-> APPLICATION.XML
      |........|-> MANIFEST.MF
      |
      |-> MYAPP.jar
      |........|-> META-INF/
      |............|-> APPLICATION.XML
      |............|-> MANIFEST.MF
      |
      |-> MYLIB.jar


      The reference to MYLIB.JAR must be put in
      MYAPP.EAR/MYAPP.JAR/META-INF/MANIFEST.MF
      as this sample:

      ------- MYAPP.EAR/MYAPP.JAR/META-INF/MANIFEST.MF ----
      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.6.1
      Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)
      Class-Path: MYLIB.jar
      -----------------------------------------------------

        • 1. Re: tips: external JAR references from ejb-app-JAR
          kamal_tavant

          Is there a easier way of doing this for multiple jars without having to enumerate each one of them in the class-path entry.

          Something like copying all the jars to

          EAR
          ---lib
          common jars


          and add
          class-path ./lib/
          or
          class-path ./lib/*.jar

          to the ejb.jars manifest.mf. Will this work? or is there some equivalent to this.