From user-return-27482-apmail-commons-user-archive=commons.apache.org@commons.apache.org Mon Jun 11 14:08:17 2012 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 986C998BB for ; Mon, 11 Jun 2012 14:08:17 +0000 (UTC) Received: (qmail 69339 invoked by uid 500); 11 Jun 2012 14:08:16 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 69240 invoked by uid 500); 11 Jun 2012 14:08:16 -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 69231 invoked by uid 99); 11 Jun 2012 14:08:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 14:08:16 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 14:08:11 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Se5HZ-0004Af-Sw for user@commons.apache.org; Mon, 11 Jun 2012 07:07:49 -0700 Date: Mon, 11 Jun 2012 07:07:49 -0700 (PDT) From: ldp To: user@commons.apache.org Message-ID: <1339423669890-4634919.post@n4.nabble.com> In-Reply-To: References: <1339407038376-4634909.post@n4.nabble.com> <65788225B417F14CBE94A3BE95A4A91334431F9F@CED01MBXS09.replynet.prv> <1339417684932-4634915.post@n4.nabble.com> Subject: Re: [vfs] How to resolve a share path to a FileObject MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6169_902466.1339423669891" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6169_902466.1339423669891 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit [Do you have all of the dependencies you need?] *My classpath is: * Turn up logging to see what providers VFS is loading. *How can I do this?* In trunk it looks like the SMB stuff is in the sandbox. It requires JCIFS, it looks like. Do you have that? *yes* The full error trace is: org.apache.commons.vfs2.FileSystemException: Badly formed URI "smb://usr:***@hostname/filename". at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:91) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621) at FileTransfer.copyFileUsingVFS(FileTransfer.java:97) at FileTransfer.main(FileTransfer.java:67) Caused by: java.net.MalformedURLException: unknown protocol: smb at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72) ... 4 more -- View this message in context: http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634919.html Sent from the Commons - User mailing list archive at Nabble.com. ------=_Part_6169_902466.1339423669891--