Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4251

Class-Path entry in WAR manifest didn't work if entry is a directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2
    • 2.1.4, 2.2
    • None
    • Security Level: public (Regular issues)
    • None
    • Geronimo 2.1.2 on Windows XP

    • Patch Available

    Description

      Hi,

      it's not possible to define an Class-Path element in the WARs manifest, if it's a directory. I try to access jar files packed in the EARs lib/ directory from within a WAR module.

      e.g. this will work:
      Class-Path: a.jar b.jar

      but this doesn't work:
      Class-Path: lib/

      If a directory is specifyed, I receive the following error:

      15:20:13,170 ERROR [DirectoryHotDeployer] Unable to deploy: Manifest class path
      entries must end with the .jar extension (J2EE 1.4 Section 8.2): module=../
      org.apache.geronimo.common.DeploymentException: Manifest class path entries must
      end with the .jar extension (J2EE 1.4 Section 8.2): module=../
      at org.apache.geronimo.deployment.DeploymentContext.addManifestClassPath
      (DeploymentContext.java:419)
      ...

      I think this is definitely an error because the JEE5 specification section 8.2.1 explicitely allows directories in manifest Class-Path entries.

      See discussion:
      http://www.nabble.com/EAR-bundle-dir-classpath-issue-tt18982334s134.html

      Attachments

        1. my-ear-1.0-SNAPSHOT.ear
          149 kB
          Haihong Xu
        2. geronimo-deployment-2.2-SNAPSHOT.jar
          85 kB
          Haihong Xu
        3. Geronimo-4251-withtestcase.patch
          21 kB
          Haihong Xu
        4. Geronimo-4251.patch
          18 kB
          Haihong Xu

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            fmeili Frank Meilinger
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: