Re: Preventing Parent Classloading

2003-10-15 Thread Upayavira
Stefan Bodewig wrote: On Wed, 15 Oct 2003, Upayavira <[EMAIL PROTECTED]> wrote: as Cocoon requires a different version of Avalon logging from that in the Ant Velocity jar. Hmm, there is no velocity.jar in Ant ... A stock Ant distribution bundles Xerces and xml-apis and nothing else. Maybe y

Re: Preventing Parent Classloading

2003-10-15 Thread Stefan Bodewig
On Wed, 15 Oct 2003, Upayavira <[EMAIL PROTECTED]> wrote: > as Cocoon requires a different version of Avalon logging from that > in the Ant Velocity jar. Hmm, there is no velocity.jar in Ant ... A stock Ant distribution bundles Xerces and xml-apis and nothing else. Maybe your Ant installation ha

Re: Preventing Parent Classloading

2003-10-15 Thread Upayavira
Conor MacNeill wrote: From: Dominique Devienne [mailto:[EMAIL PROTECTED] Note that it's often dangerous to break the delegation model of class loaders... Works sometimes, but be aware we're breaking the rules. --DD Absolutely. I would caution against violating the requirement to delegate to p

RE: Preventing Parent Classloading

2003-10-14 Thread Conor MacNeill
> From: Dominique Devienne [mailto:[EMAIL PROTECTED] > > Note that it's often dangerous to break the delegation model of class > loaders... Works sometimes, but be aware we're breaking the rules. --DD > Absolutely. I would caution against violating the requirement to delegate to parent loaders.

[Complete] Re: Preventing Parent Classloading

2003-10-13 Thread Upayavira
Dominique Devienne wrote: -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Dominique Devienne wrote: Here's something that might work. The code you sketched below, which only depends on Cocoon classes, could be make part of Cocoon itself in an existing or new JAR from Cocoo

RE: Preventing Parent Classloading

2003-10-10 Thread Dominique Devienne
> -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED] > Samuel Gabriel wrote: > >We ran into this problem in one of our projects. The solution we found is > to > >override the loadClass method so that it looks into the classloader > classes > >before it looks into the parent clas

Re: Preventing Parent Classloading

2003-10-10 Thread Nick Chalko
Upayavira wrote: Samuel Gabriel wrote: We ran into this problem in one of our projects. The solution we found is to override the loadClass method so that it looks into the classloader classes before it looks into the parent classes. This way if there are classes that are conflicting our classes

Re: Preventing Parent Classloading

2003-10-10 Thread Upayavira
Developers List' Subject: RE: Preventing Parent Classloading -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Dominique Devienne wrote: Here's something that might work. The code you sketched below, which only depends on Cocoon classes, could be make part of

RE: Preventing Parent Classloading

2003-10-10 Thread Samuel Gabriel
-Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 11:00 AM To: 'Ant Developers List' Subject: RE: Preventing Parent Classloading > -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED] > > Dominique Dev

RE: Preventing Parent Classloading

2003-10-10 Thread Dominique Devienne
> -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED] > > Dominique Devienne wrote: > >Here's something that might work. The code you sketched below, which only > >depends on Cocoon classes, could be make part of Cocoon itself in an > >existing or new JAR from Cocoon/WEB-INF/lib

Re: Preventing Parent Classloading

2003-10-10 Thread Upayavira
get(parent.getOwningTarget()); // Initialize (and return) the helper helper.init(); return helper; } ... } -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 6:00 PM To: Ant Developers List Subject: Re: Preventing Parent Class

RE: Preventing Parent Classloading

2003-10-10 Thread Dominique Devienne
> To: Ant Developers List > Subject: Re: Preventing Parent Classloading > > Dominique Devienne wrote: > > >Sounds like the CL you create delegates to the Ant CL, thus your problem. > >Create your own CL by making it delegate to the Root/Bootstrap CL (by > >setting the par

Re: Preventing Parent Classloading

2003-10-09 Thread Upayavira
27;m afraid! Thanks again, Upayavira -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Preventing Parent Classloading I'm working on a CocoonTask. Cocoon has a significant bundle of jars, some of which overla

RE: Preventing Parent Classloading

2003-10-09 Thread Dominique Devienne
seems alright for you). I'm no class loading expert, but at first glance this should work. --DD > -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2003 2:39 PM > To: [EMAIL PROTECTED] > Subject: Preventing Parent Classloading

Preventing Parent Classloading

2003-10-09 Thread Upayavira
I'm working on a CocoonTask. Cocoon has a significant bundle of jars, some of which overlap with Ant's. In my task, I set up a class loader responsible for loading Cocoon classes, which works, apart from when those same classes exist in Ant, when the Ant ones are loaded instead of Cocoon's.Ant