Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99480 invoked from network); 14 Sep 2010 16:46:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 16:46:26 -0000 Received: (qmail 12015 invoked by uid 500); 14 Sep 2010 16:46:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 11915 invoked by uid 500); 14 Sep 2010 16:46:25 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 11907 invoked by uid 99); 14 Sep 2010 16:46:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 16:46:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rafaeldff@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 16:46:19 +0000 Received: by qwk4 with SMTP id 4so2299000qwk.4 for ; Tue, 14 Sep 2010 09:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=UtC01VPH8JZJm/LWU9O3mhq2u2W/n/thqnXUx4DtJqE=; b=SxfFu747yNXLG0lZsOi2OM07CrluxG8Cy0eu9+E41HBxoKbu2RGY0J71fAGyYCVCQd PrZ3PGqoUWzfkUsbLf1cGPmG/GmKOU2tKrqeoZoHk7YTtSEb/xpOsHTsx4KeeIFATm20 c9aua7gQ2dSoK2XbLIs/vmS3vEPcLK+In3e9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=gJMya84leOsVse5I75y0I/CwEPIpOCse7zyceBqDEvZS8ycQ+Gxd1pAwu0g3MtQjLS OW1vTD6XGTvA/DsttmUdyhE8I6hHs2E8n+dGWJyrBTI7BsFLkeAWWfAeGZenp85LkR5S qla3OLaHI6KUa7od5f3nRy6/j3avJsfOUZ/Eg= Received: by 10.224.10.198 with SMTP id q6mr85100qaq.366.1284482758961; Tue, 14 Sep 2010 09:45:58 -0700 (PDT) MIME-Version: 1.0 Sender: rafaeldff@gmail.com Received: by 10.229.250.85 with HTTP; Tue, 14 Sep 2010 09:45:37 -0700 (PDT) From: "Rafael de F. Ferreira" Date: Tue, 14 Sep 2010 13:45:37 -0300 X-Google-Sender-Auth: tBejYDR69hKwd_ae4U7prU5IcYw Message-ID: Subject: AntClassLoader and the system classloadr. To: user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello. I've run into an issue with ant's classloading strategy. When I try to run a Java class with the task, I get a ClassNotFoundException for com.sun.xml.internal.ws.spi.ProviderImpl. >From a cursory inspection of org.apache.tools.ant.AntClassLoader, it seems Ant only delegates to the system ClassLoader if the class being loaded belongs to a fixed set of packages[1]. The problem occurs because "com.sun.xml.internal" and it's sub-packages are not on this set. Is there any way to force ant to delegate class loading as specced? Some other workaround would be fine as well (except fork='true'). Thanks. [1] http://www.google.com/codesearch/p?hl=en#9iXYxNufh_Y/trunk/src/main/org/apache/tools/ant/util/JavaEnvUtils.java&l=324 -- Rafael de F. Ferreira. http://www.rafaelferreira.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org