One more way:
You can use VirtualWebappLoader
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/loader/VirtualWebappLoader.html
It adds the listed classpath entries to the webapp classloader.
I do not know, whether it appends or prepends them, and as that is not
documented it can be
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rasmus,
On 10/2/2009 4:30 PM, Rasmus Larsen wrote:
> I've created a custom class loader, which first first tries to load
> classes from a specific set of jars, and if that fails it just loads
> the class in the standard manner. This makes it possible
On Sun, Oct 4, 2009 at 4:23 PM, Caldarale, Charles R
wrote:
>> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
>> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>>
>> No, you can just overwrite setclasspath.sh and put the 'first'
> From: Rasmus Larsen [mailto:kolibria...@gmail.com]
> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>
> Just to clarify, the Jars have nothing to do with SpringSource.
Sorry, my mistake; I was confusing this thread with Bocalinda's.
Contacting the vendor
2009/10/4 Caldarale, Charles R :
>> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
>> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>>
>> No, you can just overwrite setclasspath.sh and put the 'first' jar
>> into t
> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>
> No, you can just overwrite setclasspath.sh and put the 'first' jar
> into the first place of the classpath manually.
??? These are jars
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 th
2009 13:02:39 +0200
> Subject: Re: Loading Jar files in a particular order on Tomcat 6
> From: kolibria...@gmail.com
> To: users@tomcat.apache.org
>
> 2009/10/4 Leon Rosenberg :
> > On Sun, Oct 4, 2009 at 1:00 AM, Eric B. wrote:
> >> "Caldarale, Charles R" 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 ar
On Sun, Oct 4, 2009 at 1:00 AM, Eric B. wrote:
> "Caldarale, Charles R" wrote in message
> news:99c8b2929b39c24493377ac7a121e21f84054c1...@usea-exch8.na.uis.unisys.com...
>> From: Rasmus Larsen [mailto:kolibria...@gmail.com]
>> Subject: Loading Jar files in a
> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>
> I am rather sure that it is an official rule (I must be somewhere
> documented [1]), that jars in a classpath are searched in the order
> they a
2009/10/4 Caldarale, Charles R :
>> From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B.
>> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>>
>> I've always noticed that the classloader loads things in alphabetical
>> order.
>
> ?
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B.
> Subject: Re: Loading Jar files in a particular order on Tomcat 6
>
> I've always noticed that the classloader loads things in alphabetical
> order.
??? Which classloader are you referring to? And by "thin
"Caldarale, Charles R" wrote in message
news:99c8b2929b39c24493377ac7a121e21f84054c1...@usea-exch8.na.uis.unisys.com...
> From: Rasmus Larsen [mailto:kolibria...@gmail.com]
> Subject: Loading Jar files in a particular order on Tomcat 6
>
> I'm working on a w
> From: Rasmus Larsen [mailto:kolibria...@gmail.com]
> Subject: Loading Jar files in a particular order on Tomcat 6
>
> I'm working on a web application where I have dependencies on two
> different jars containing two different versions of the same class.
Ugly, at best.
>
I'm working on a web application where I have dependencies on two
different jars containing two different versions of the same class.
The jar files are supplied by an external vendor and cannot be
changed.
I've created a custom class loader, which first first tries to load
classes from a specific
16 matches
Mail list logo