commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ldp <l.dellipa...@reply.it>
Subject Re: [vfs] How to resolve a share path to a FileObject
Date Mon, 11 Jun 2012 14:07:49 GMT
[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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message