Question about a MANIFEST.mf file

Discussions

EJB design: Question about a MANIFEST.mf file

  1. Question about a MANIFEST.mf file (2 messages)

    hi everybody,
    I have deployed an EAR file containing EJB jar on JBoss.
    My EJB use third party jar that I put in the lib directory under the root of my application EAR directory.
    The structure of my EAR file is :
    application-root\
    ejbJar.jar
    META-INF\application.xml
    META-INF
    MANIFEST.MF
    lib\thirdParty.jar

    I want to reference this third party jar in the MANIFEST file in the META-INF directory.
    Can anybody tell me what the syntacs of the MANIFEST File entry should be?
    my current MANIFEST file looks like this:

    Manifest-Version: 1.0
    Created-By: 1.4.1_01 (Sun Microsystems Inc.)
    Class-Path: lib\thirdParty.jar

    The Application classloader could not find the thirdPary jar.
    So, what the Class-Path entry should be so JBoss successfully load the required jar??

    thank you.
    Stan.
  2. Question about a MANIFEST.mf file[ Go to top ]

    hi everybody,

    > I have deployed an EAR file containing EJB jar on JBoss.
    > My EJB use third party jar that I put in the lib directory under the root of my application EAR directory.
    > The structure of my EAR file is :
    > application-root\
    > ejbJar.jar
    > META-INF\application.xml
    > META-INF
    MANIFEST.MF
    > lib\thirdParty.jar
    >
    > I want to reference this third party jar in the MANIFEST file in the META-INF directory.
    > Can anybody tell me what the syntacs of the MANIFEST File entry should be?
    > my current MANIFEST file looks like this:
    >
    > Manifest-Version: 1.0
    > Created-By: 1.4.1_01 (Sun Microsystems Inc.)
    > Class-Path: lib\thirdParty.jar
    >
    > The Application classloader could not find the thirdPary jar.
    > So, what the Class-Path entry should be so JBoss successfully load the required jar??
    >
    > thank you.
    > Stan.
    I guess you need to modify the manifest file of ejbJar.jar rather than manifest file of EAR file. Your manifest file looks good to me except use forward slash instead of backslash as given below
    lib/thirdParty.jar


    Hope this helps
  3. Question about a MANIFEST.mf file[ Go to top ]

    hi Hari,
    Thank you very much.
    Indeed you were right.
    I included the class-path entry in the Manifest.mf file of my ejb jar
    and it worked.
    Thank you and happy new year!!

    Stan.