Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 20328 invoked from network); 13 Sep 2006 00:22:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 00:22:23 -0000 Received: (qmail 2155 invoked by uid 500); 13 Sep 2006 00:22:22 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 2107 invoked by uid 500); 13 Sep 2006 00:22:22 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 2094 invoked by uid 99); 13 Sep 2006 00:22:22 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 17:22:22 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=antoine@gmx.de; spf=pass X-ASF-Spam-Status: No, hits=0.1 required=5.0 tests=FORGED_RCVD_HELO Received-SPF: pass (idunn.apache.osuosl.org: domain gmx.de designates 213.165.64.20 as permitted sender) Received: from ([213.165.64.20:47727] helo=mail.gmx.net) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 83/60-06304-84F47054 for ; Tue, 12 Sep 2006 17:22:33 -0700 Received: (qmail 32027 invoked by uid 0); 13 Sep 2006 00:22:14 -0000 Received: from 66.28.87.10 by www005.gmx.net with HTTP; Wed, 13 Sep 2006 02:22:14 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Wed, 13 Sep 2006 02:22:14 +0200 From: "Antoine Levy-Lambert" In-Reply-To: <255d8d690609121657j2bd87701i64d51a9fe22b3806@mail.gmail.com> Message-ID: <20060913002214.87120@gmx.net> MIME-Version: 1.0 References: <20060912142938.9789.qmail@web55114.mail.re4.yahoo.com> <20060912201154.87060@gmx.net> <20060912215352.87080@gmx.net> <255d8d690609121657j2bd87701i64d51a9fe22b3806@mail.gmail.com> Subject: Re: classloader for 1.7 To: "Ant Developers List" X-Authenticated: #22961642 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Dominique, my custom task did not create a classloader, at least not "consciously". The custom task was defined with . I simply saw that putting the JNDI driver in the classpath of the taskdef did not work. Regards, Antoine -------- Original-Nachricht -------- Datum: Tue, 12 Sep 2006 18:57:04 -0500 Von: "Dominique Devienne" An: "Ant Developers List" Betreff: Re: classloader for 1.7 > > I had a problem with a custom task which I had written which was using > JNDI. This task had a runtime dependency on a JNDI driver for MQ Series. > Adding the JNDI driver to the classpath of the taskdef never worked, the only > thing that worked was to start ant with a -lib fullpathtoMQJNDI.jar. I > assumed that the reason is that the JNDI driver is loaded by the JDK runtime, > so only indirectly from my custom task. > > JDK code, loaded by the bootstrap class loader, depends I believe on > the context class loader to locate/load discovered services. I believe > the CL set by Launcher is set as the context loader, which is why it > worked, whereas the CL you created in your custom task wasn't the > context one maybe? I'm just guessing of course. --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org