3 Replies Latest reply on Aug 22, 2003 2:43 PM by kprindia

    EJBDeployer handling of MANIFEST.MF broken in 3.2.1?

    troypoppe


      I just installed 3.2.1 (upgrading from 3.0.6) and I think I've discovered a problem with the EJBDeployer's handling of META-INF/Manifest.MF files.

      In an EAR file I had working on 3.0.6, I had the following contents of a Manifest.MF:

      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.5.2
      Created-By: 1.4.1_01-b01 (Sun Microsystems Inc.)
      Class-Path: lib/Party.jar


      When deployed on 3.0.6, this worked fine, and added the path (from inside the ear file) to the classpath, and loaded the classes properly.

      However, in 3.2.1, I get this error message when deploying:

      13:58:10,431 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.1/server/default/deploy/pmsejb.ear
      13:58:10,451 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.1/server/default/deploy/pmsejb.ear
      13:58:10,982 WARN [MainDeployer] The manifest entry in file:/C:/jboss-3.2.1/server/default/deploy/pmsejb.ear references URL file:/C:/jboss-3.2.1/server/default/deploy/lib/Party.jar which could not be opened, entry ignored
      13:58:12,384 WARN [EJBDeployer] Verify failed; continuing

      Note the path it is trying to load from, this is not relative to the archive (.ear). This seems to be a violation of the jar file specification (http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html#JAR%20Manifest)

      Any guidance?

      Thanks

      Troy Poppe

        • 1. Re: EJBDeployer handling of MANIFEST.MF broken in 3.2.1?
          sraj

          looks like if you have an ejb in that jar it gives this error .. not if its a plain jar file.

          • 2. Re: EJBDeployer handling of MANIFEST.MF broken in 3.2.1?
            gudmundsonsc

            I had a similar problem and put ../lib/....... instead of simply lib/....... to work around.

            • 3. Re: EJBDeployer handling of MANIFEST.MF broken in 3.2.1?
              kprindia

              This is about jboss 3.2.1

              Even i have similar problem.
              This is my directory structure
              Trendium.ear
              OB.jar
              Backend.jar
              tsglt50.jar
              tsgltc5.jar
              Beans.jar
              --- META-INF
              --- com/trendium/ejbs/*.java

              Beans in Beans.jar requires the other four jars.
              I specified that dependency using Class-Path : Backend.jar, tsglt50.jar, tsgltc5.jar
              with a new line after this line.

              When i deploy the beans.jar, jboss says that Beans.jar deployed.
              But when i tried to do a jndi lookup on the bean, it says NameNotFound. By trial and error i removed the Class-Path line in the manifest line and now i am able to find the bean using JNDI lookup.

              Now when i try to use the bean after lookup, it is not able to find some of the classes needed by the beans in beans.jar as they are present in the other jar files.

              I am interested to know where to place the other jars such that it is visible to Beans.jar in jboss 3.2.1

              I appreciate anybody's response to my posting.

              Thank you