Re: Loading Jar files in a particular order on Tomcat 6

2009-10-11 Thread Konstantin Kolinko
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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-09 Thread Christopher Schultz
-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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
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'

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Caldarale, Charles R
> 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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Rasmus Larsen
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

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread 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 the first place of the classpath manually. ??? These are jars

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
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

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Martin Gainty
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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Rasmus Larsen
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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
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

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Caldarale, Charles R
> 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

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Konstantin Kolinko
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. > > ?

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread 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. ??? Which classloader are you referring to? And by "thin

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Eric B.
"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

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-02 Thread Caldarale, Charles R
> 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. >

Loading Jar files in a particular order on Tomcat 6

2009-10-02 Thread Rasmus Larsen
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