Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 97806 invoked from network); 29 Dec 2008 05:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2008 05:17:08 -0000 Received: (qmail 24975 invoked by uid 500); 29 Dec 2008 05:17:07 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 24921 invoked by uid 500); 29 Dec 2008 05:17:07 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 24910 invoked by uid 99); 29 Dec 2008 05:17:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Dec 2008 21:17:07 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 05:17:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7CDEB234C47A for ; Sun, 28 Dec 2008 21:16:46 -0800 (PST) Message-ID: <1932133235.1230527806510.JavaMail.jira@brutus> Date: Sun, 28 Dec 2008 21:16:46 -0800 (PST) From: "Yves Zoundi (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (VFS-228) Ant regression with ClassNotFoundException for DefaultLocalFileProvider In-Reply-To: <31012329.1228986944471.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VFS-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659498#action_12659498 ] Yves Zoundi commented on VFS-228: --------------------------------- Please apply the above proposed solution. The VFS class loading issues are easily visible inside an OSGI environment, making it impossible to use the library. Any attempt to call the static default filesystemmanager result into an unchecked initialization error. > Ant regression with ClassNotFoundException for DefaultLocalFileProvider > ----------------------------------------------------------------------- > > Key: VFS-228 > URL: https://issues.apache.org/jira/browse/VFS-228 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 2.0 > Environment: java version "1.6.0_0" > IcedTea6 1.3.1 (6b12-0ubuntu6) Runtime Environment (build 1.6.0_0-b12) > OpenJDK Client VM (build 1.6.0_0-b12, mixed mode, sharing) > Apache Ant version 1.7.1 compiled on October 3 2008 > Reporter: Per Hermansson > Priority: Critical > Fix For: 2.0 > > Attachments: patch, test.xml > > > The latest version from trunk fails to work with Apache Ant resulting in this error: > Could not load VFS configuration from "jar:file:/media/Fort/per/program/backup/lib/commons-vfs-2.0-SNAPSHOT.jar!/org/apache/commons/vfs/impl/providers.xml". > which was caused by > java.lang.ClassNotFoundException: org.apache.commons.vfs.provider.local.DefaultLocalFileProvider > The cause seems to be a class loader issued introduced in rev 537717. > Reverting that change: > cd core > svn diff -c r537717 src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java | patch -R > mvn clean install > [copy commons-vfs-2.0-SNAPSHOT to my test's lib dir] > ant -f test.xml test > Makes my example ant file work again (worked with the 1.0 release). > The 537717 revision was intended to fix > VFS-136: Don't force-set the classloader - Thanks to Adam Heath for the patch > So it might be a bit controversial to reverse that change. > Attaching patch fixing the issue and my example ant file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.