Re: What order are jars used in the WARs lib directory?

2003-07-21 Thread Will Hartung
 From: Tim Funk [EMAIL PROTECTED]
 Sent: Thursday, July 17, 2003 5:43 PM

 From the spec:
 The web application classloader must load classes from the WEB-INF/
classes
 directory first, and then from library JARs in the WEB-INF/lib directory.

 So if you have patches - don't JAR them.

 Since the spec doesn't specify JAR order, it may be different between
 containers, containers version, or even OS's.

Right, it's implementation dependent :-/

I could also make my own jar, but I was just curious if they had something
official.

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What order are jars used in the WARs lib directory?

2003-07-17 Thread Will Hartung
If I have jars that I'd like to put in to the WARs lib directory (or, say,
shared/lib), is there any way I can, perhaps, name them to guarantee use
order?

For example, say I have:

mystuff.jar and mystuff_patch.jar

If I have CLASSPATH=mystuff_patch.jar:mystuff.jar, then, ordinarily, Java
will find classes and use the classes within mystuff_patch.jar before it
finds the identically named ones in mystuff.jar.

So, is there any way to determine what this order is in the Tomcat lib
directories??

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What order are jars used in the WARs lib directory?

2003-07-17 Thread Tim Funk
From the spec:
The web application classloader must load classes from the WEB-INF/ classes
directory first, and then from library JARs in the WEB-INF/lib directory.
So if you have patches - don't JAR them.

Since the spec doesn't specify JAR order, it may be different between 
containers, containers version, or even OS's.

-Tim

Will Hartung wrote:
If I have jars that I'd like to put in to the WARs lib directory (or, say,
shared/lib), is there any way I can, perhaps, name them to guarantee use
order?
For example, say I have:

mystuff.jar and mystuff_patch.jar

If I have CLASSPATH=mystuff_patch.jar:mystuff.jar, then, ordinarily, Java
will find classes and use the classes within mystuff_patch.jar before it
finds the identically named ones in mystuff.jar.
So, is there any way to determine what this order is in the Tomcat lib
directories??
Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]