You should put the lib directory under deploy and jar the rest of the files
into the ejb jar:

deploy/ejb-app.jar
deploy/lib/xml.jar
deploy/lib/mylib.jar


META-INF/
META-INF/MANIFEST.MF
com/acme/one.class
com/acme/two.class
                   \_______________________________ ejb-app.jar


Also, you must use paths relative to the app (not the META-INFO dir) in your
MANIFEST.MF:

Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: lib/xml.jar lib/mylib.jar

Instead of this you could jar everything into an ear file, as some other
people in the list suggested.

I hope that this reply, although being a late one (I'm new in the list and
have found your post in the archives), helps you.

See you,
    Carlos

-----Original Message-----
From: Andrew J. Ayers
To: JBoss-User
Sent: 2/28/01 6:15 PM
Subject: Re: [jBoss-User] MANIFEST.MF  Class-Path and Jars

I want to include some other 3rd party libraries in the EJB jar.  For
example, the JAR looks like this:

META-INF/
META-INF/MANIFEST.MF
com/acme/one.class
com/acme/two.class
lib/xml.jar
lib/mylib.jar

The MANIFEST.MF look something like this:

Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: ../lib/xml.jar ../lib/mylib.jar




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to