4 Replies Latest reply on Mar 10, 2002 12:01 AM by camtabor

    Ejb jar Classpath in Manifest.mf

    camtabor

      Hello, I posted this message as a reply on the dev-mirror, but thought this forum would be more appropriate, any help will be appreciated.

      I'm using 2.4.4 and seeing the following, when I have the line:

      Class-Path: automarkinventory.jar

      In my Manifest.mf file it appears to look on the filesystem for the jar file, why not inside my ejb jar file?

      I am just wondering if I'm doing something wrong here.

      [INFO,J2eeDeployer] install EJB module iengineejb.jar
      [DEBUG,J2eeDeployer] resolveLibraries: automarkinventory.jar
      [WARN,J2eeDeployer] Failed to add automarkinventory.jar to common classpath: C:\
      test\JBoss-2.4.4_Tomcat-3.2.3\jboss\deploy\processor\automarkinventory.jar (The
      system cannot find the file specified)

        • 1. Re: Ejb jar Classpath in Manifest.mf
          pazu

          Me thinks you should use Clas-Path: ./automarketinventor.jar

          • 2. Re: Ejb jar Classpath in Manifest.mf
            camtabor

            I tried that, same result, thanks.

            • 3. Re: Ejb jar Classpath in Manifest.mf
              tbfmicke

              (I think I saw an answer to this in developer list
              but an answer should be here too)

              The Class-Path in the jar manifests are meant
              to define jars _outside_ the current jar. So,
              the behaviour you see is correct. If you put
              the automarkinventory.jar inside the deploy
              directory i guess that JBoss should find it.

              However, IMHO, the main usage for this within
              J2EE is to put both your EJB jar and the
              automarkinventory.jar inside an .ear file, giving
              you only one file inside the deploy directory
              for a whole application :-)

              Regards

              > I'm using 2.4.4 and seeing the following, when I have
              > the line:
              >
              > Class-Path: automarkinventory.jar
              >
              > In my Manifest.mf file it appears to look on the
              > filesystem for the jar file, why not inside my ejb
              > jar file?
              >
              > I am just wondering if I'm doing something wrong
              > here.

              • 4. Re: Ejb jar Classpath in Manifest.mf
                camtabor

                hmmm,
                I wasn't understanding that properly, thanks for clearing that up.
                -Cameron