[Do you have all of the dependencies you need?]  *My classpath is:
<?xml version="1.0" encoding="UTF-8"?>

       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
*

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.

Reply via email to