Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 12004 invoked from network); 12 Sep 2006 23:57:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 23:57:28 -0000 Received: (qmail 82236 invoked by uid 500); 12 Sep 2006 23:57:27 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 82200 invoked by uid 500); 12 Sep 2006 23:57:27 -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 82189 invoked by uid 99); 12 Sep 2006 23:57:27 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ddevienne@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 16:57:27 -0700 Received: by nf-out-0910.google.com with SMTP id x29so1487126nfb for ; Tue, 12 Sep 2006 16:57:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=doWaQJp0x5wKC7oi6cjeLM6EQ0ioYOBsBhSDBEnKlqBHwv6hkiEBuFmhRTMjTDYd/HG/jMPI9qO5mW2Mdf2HeX0KFuSItRbweNlkxbOSeW+QBGRPpk4i1YRP45fiGxX8SlcTJRqJX0KeO21KPg96wOPU9QT1B8K53FA/o7naRHw= Received: by 10.49.8.1 with SMTP id l1mr10359238nfi; Tue, 12 Sep 2006 16:57:05 -0700 (PDT) Received: by 10.49.64.15 with HTTP; Tue, 12 Sep 2006 16:57:04 -0700 (PDT) Message-ID: <255d8d690609121657j2bd87701i64d51a9fe22b3806@mail.gmail.com> Date: Tue, 12 Sep 2006 18:57:04 -0500 From: "Dominique Devienne" To: "Ant Developers List" Subject: Re: classloader for 1.7 In-Reply-To: <20060912215352.87080@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060912142938.9789.qmail@web55114.mail.re4.yahoo.com> <20060912201154.87060@gmx.net> <20060912215352.87080@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > 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