Re: class.forName()

2001-11-21 Thread Stefan Bodewig
On Mon, 19 Nov 2001, Don Taylor <[EMAIL PROTECTED]> wrote: > --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > > > >> Everything you have in your CLASSPATH or in ANT_HOME/lib will end >> up in your system classloader when you run Ant. If your task >> implementation can be loaded via this class

AW: class.forName()

2001-11-19 Thread Michael Remme
At least i got it and - shame on me - the error wasn't in ant but in my build-file, where i am using an external property-file, where inside i defined a property by using double-quotes :-( > > > the taskdef, where i am having the problem is quite complex and is > > using several own libs. > > T

Re: class.forName()

2001-11-19 Thread Don Taylor
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > Everything you have in your CLASSPATH or in ANT_HOME/lib will end up > in your system classloader when you run Ant. If your task > implementation can be loaded via this classloader, it *will* be > loaded > via this classloader, no matter what.

Re: class.forName()

2001-11-18 Thread Stefan Bodewig
On Sat, 17 Nov 2001, Michael Remme <[EMAIL PROTECTED]> wrote: > the taskdef, where i am having the problem is quite complex and is > using several own libs. The most common reason for classloader problems with taskdefs is that the task implementing class itself can be loaded from the system clas

AW: class.forName()

2001-11-17 Thread Michael Remme
me <[EMAIL PROTECTED]> wrote: > > > Here the problem is residing in an own taskdef, where i want to > > instantiate a class by calling Class.forName( ), which is > > always throwing a ClassNotFoundException. > > Could you show us the taskdef please - is the class you

Re: class.forName()

2001-11-16 Thread Peter Donald
On Sat, 17 Nov 2001 01:47, Mark Claassen wrote: > > The class you are looking up should be in the same classloader or > > a parent > > classloader of your task. So if your task is loaded from ant/lib then the > > other class must also be in ant/lib etc. > > Does ant use a different class loader fo

Re: class.forName()

2001-11-16 Thread Stefan Bodewig
On Fri, 16 Nov 2001, Michael Remme <[EMAIL PROTECTED]> wrote: > Here the problem is residing in an own taskdef, where i want to > instantiate a class by calling Class.forName( ), which is > always throwing a ClassNotFoundException. Could you show us the taskdef please - i

RE: class.forName()

2001-11-16 Thread Mark Claassen
> The class you are looking up should be in the same classloader or > a parent > classloader of your task. So if your task is loaded from ant/lib then the > other class must also be in ant/lib etc. > Does ant use a different class loader for every task definition? Why? > Cheers, > > Pe

Re: class.forName()

2001-11-16 Thread Peter Donald
On Sat, 17 Nov 2001 01:16, Michael Remme wrote: > in ant 1.4 i have the problem, that the Class.forName() is throwing an > exception. I saw in the archive, that there was a similar request, but did > not find any reply. > > Here the problem is residing in an own taskdef,

Re: class.forName()

2001-11-16 Thread Jason Rogers
sounds like a classloader issue... but I am not an expert there. Anyone else? -jason --- Michael Remme <[EMAIL PROTECTED]> wrote: > Hi, > > in ant 1.4 i have the problem, that the Class.forName() > is throwing an > exception. I saw in the archive, that there was a simil

class.forName()

2001-11-16 Thread Michael Remme
Hi, in ant 1.4 i have the problem, that the Class.forName() is throwing an exception. I saw in the archive, that there was a similar request, but did not find any reply. Here the problem is residing in an own taskdef, where i want to instantiate a class by calling Class.forName( ), which