tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Rosenberg <>
Subject Re: Loading Jar files in a particular order on Tomcat 6
Date Sun, 04 Oct 2009 13:19:29 GMT
On Sun, Oct 4, 2009 at 1:02 PM, Rasmus Larsen <> wrote:
> 2009/10/4 Leon Rosenberg <>:
>> On Sun, Oct 4, 2009 at 1:00 AM, Eric B. <> wrote:
>>> "Caldarale, Charles R" <> wrote in message
>> Back to the original post,
>> why don't you simply patch (maybe automatically with ant) the jar file
>> containing the 'old' version of the class and remove it?
> The jar files are provided and signed by an external vendor.
>> You won't be able to keep two different versions of a class in the
>> same classloader anyway.
> I want to use the newest version only, of course. Normally, I would
> simply place the jar with the newest versions first in the classpath.
> But the tomcat server has no such control, instead it just loads jar
> files from the WEB-INF/lib directory, which means that the order is
> based on the OS filesystem.

No, you can just overwrite and put the 'first' jar
into the first place of the classpath manually.

On a side note, I would have a serious discussion about the quality of
their jars with the vendor(s). Simply put: one class can only be
located in one jar, everything else is unacceptable :-)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message