Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BE9417391 for ; Thu, 26 Mar 2015 09:26:16 +0000 (UTC) Received: (qmail 66447 invoked by uid 500); 26 Mar 2015 09:26:15 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 66324 invoked by uid 500); 26 Mar 2015 09:26:15 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 66313 invoked by uid 99); 26 Mar 2015 09:26:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 09:26:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.63.252.55] (HELO smtp.domeneshop.no) (194.63.252.55) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 09:26:09 +0000 Received: from [195.254.172.59] (port=61050 helo=[10.216.8.67]) by smtp.domeneshop.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Yb41t-0002j1-NO for user@commons.apache.org; Thu, 26 Mar 2015 10:24:45 +0100 Message-ID: <1427361884.3678.1.camel@helge-ThinkPad-W520-Super> Subject: Re: [vfs] FileSystemException: Could not load VFS configuration From: Helge Waastad To: Commons Users List Date: Thu, 26 Mar 2015 10:24:44 +0100 In-Reply-To: <20150325221730.00003aa5.ecki@zusammenkunft.net> References: <1427302083.5743.18.camel@helge-ThinkPad> <20150325221730.00003aa5.ecki@zusammenkunft.net> Content-Type: multipart/alternative; boundary="=-MpZMwWdmyCHJYmRvlVSO" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --=-MpZMwWdmyCHJYmRvlVSO Content-Type: text/plain; charset="ISO-8859-9" Content-Transfer-Encoding: 7bit Hi, and thanks for answering. I figured it out. It was a classloader issue. so by setting classloader on STandardFilesystemMAnager I got it working. br hw on., 25.03.2015 kl. 22.17 +0100, skrev Bernd Eckenfels: > Am Wed, 25 Mar 2015 17:48:03 +0100 > schrieb Helge Waastad : > > > If I bundle the commons-vfs2 (2.1-SNAPSHOT/2.0) with the rar I get > > then exception: > > FileSystemException: Could not load VFS configuration from > > "jar:file:/home/helge/Skrivebord/jca-parent/acme-war/target/apache-tomee/apps/acme-ra-1.0-SNAPSHOT/commons-vfs2-2.1-SNAPSHOT.jar!/org/apache/commons/vfs2/impl/providers.xml" > > Is this JAR and with the resource existing or not? > > > If I add vfs2-commons to tomee/lib and provided in my rar, then its > > working OK. > > > > Is this how it's supposed to work? > > The default configuration mechanism resolves "providers.xml" via the > classloader of the StandardFileSystemManager class. It retrieves the > URL for that resource and loads it. > > You might want to overwrite the init() method or somple create the > DefaultFileSystemManager and configure it yourself. > > (I am not entirely sure why it does not work in your scenario). > > Gruss > Bernd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > --=-MpZMwWdmyCHJYmRvlVSO--