Rod Macpherson wrote:
Sure looks simple doesn't it?

Manifest-Version: 1.0
Class-Path: library/mylib.jar library/myotherlib.jar

I tried this on weblogic 6.0 and 6.1 long ago and it did not work. I tried
it again this afternoon using a variety of simple configurations in 6.1 SP2
and it failed. I opened a case with BEA support so we will see what the deal
is from their perspective. When evaluating JBoss 3.2 this same strategy was
tried and it failed. A couple of people posted that it worked fine under
3.0.4 but perhaps they had those jars in the path in addition to the
manifest file. Followed the same process you did; made sure there was a
blank line under the Class-Path line an so on. Mine happens to be the
MANIFEST.MF of a war file that is part of my EAR but same concept. It's easy
enough to work around with the library or system class path or just jarring
up everything multiple times. Perhaps that is why this problem is being
brushed off. AFAIAC it simply does not work.

Remember my spiel about the <java> module? Add an entry in application.xml
for each loose jar and it will all magically work. Sad thing is that fails
on weblogic. Argggg!

<!-- Causes foo.jar to magically appears before all the jars 'n wars in this
ear -->
<module>
    <java> foo.jar </java>
</module>

I wish they would make that a standard and ditch the non-functional, one-off
odd-ball Class-Path thing. I am still leaving the door open that this
failure is actually a dumb mistake on my part -- basing that on experience:)
I think your seeing a situation where the behavior has simply changed from
2.X to 3.X.


----- Original Message -----
From: "Demyanovich, Craig - Apogent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 8:43 AM
Subject: RE: [JBoss-user] EAR works in 2.4.10 but not in 3.0.6



Rod,

Attached is my application.xml.

The floating JAR, eif-service_locator.jar, does not have a module type;
it's

a JAR that contains dependencies for many of the EJBs.  Check this
reference

(http://www.jboss.org/faq.jsp#FAQ-BEANDEV-NORMALJARS) for how I have my
EAR

structured.  All EJBs listed in application.xml have a manifest file whose
Class-Path entry lists eif-service_locator.jar and other "floating JARs"
(I

like your terminology ;-)).  Likewise, I would like to know what the
expected or spec-compliant behavior is for support JARs.

Again, thanks for your help,
Craig





-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Hi Rod.

Attached is a sample from an ear file I use, in which all the Library jars
can be read (and in some cases, classes extended) from.

steve@gorky:/tmp/Builds/HRneXus> jar -tvf ../HRneXus.ear
0 Tue Jan 21 16:36:30 EST 2003 META-INF/
55 Tue Jan 21 16:36:30 EST 2003 META-INF/MANIFEST.MF
5142656 Tue Jan 21 16:36:14 EST 2003 HRneXus.war
283927 Tue Jan 21 16:36:18 EST 2003 HRXBroker.jar
1475 Tue Jan 21 16:36:28 EST 2003 HRXExporter.jar
121177 Tue Jan 21 16:36:28 EST 2003 HRXCommon-lib.jar
84147 Tue Jan 21 16:36:30 EST 2003 HRXSecurity-lib.jar
12821 Tue Jan 21 16:36:30 EST 2003 HRXExporter-lib.jar
1112 Tue Jan 21 16:36:30 EST 2003 META-INF/application.xml
0 Wed Nov 06 17:45:26 EST 2002 lib/
53690 Wed Nov 06 16:23:36 EST 2002 lib/avalon-framework-cvs-20020315.jar
2163538 Wed Nov 06 16:14:34 EST 2002 lib/batik.jar
1692842 Wed Nov 06 16:23:22 EST 2002 lib/fop.jar
1812019 Sun Oct 27 13:49:46 EST 2002 xerces.jar

MANIFEST.MF from one of the JAR files
Manifest-Version: 1.0
Created-By: Ant 1.3
Class-Path: HRXCommon-lib.jar HRXSecurity-lib.jar HRXExporter-lib.jar lib/fop.jar lib/batik.jar lib/xerces.jar

I should probably point out that this is from JBoss 3.0.0/3.0.1. Also, some of the lib.jar files have dependencies on other lib.jar files.


If the jars load only when you list them in the applications.xml file, I have to wonder if they are being packed up into the right package in the ear file? In other words, if they are listed in the library directory of the ear file in the MANIFEST.MF file, does the file really exist in the library folder of the ear file?
Just a thought.

-Steve

--
Java/J2EE Developer
214-724-7741



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to