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:10:14 GMT
Do you have all of the dependencies you need?   
*My classpath is:*
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
	<classpathentry kind="lib" path="lib/commons-collections-3.1.jar"/>
	<classpathentry kind="lib" path="lib/commons-httpclient-3.0.jar"/>
	<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
	<classpathentry kind="lib" path="lib/commons-net-2.0.0.jar"/>
	<classpathentry kind="lib" path="lib/commons-net-ftp-2.0.0.jar"/>
	<classpathentry kind="lib" path="lib/jcifs-1.1.11.jar"/>
	<classpathentry kind="lib" path="lib/jsch-0.1.48.jar"/>
	<classpathentry kind="lib" path="mail/dsn.jar"/>
	<classpathentry kind="lib" path="mail/imap.jar"/>
	<classpathentry kind="lib" path="mail/mail.jar"/>
	<classpathentry kind="lib" path="mail/mailapi.jar"/>
	<classpathentry kind="lib" path="mail/pop3.jar"/>
	<classpathentry kind="lib" path="mail/smtp.jar"/>
	<classpathentry kind="lib" path="lib/commons-vfs2-2.0.jar"/>
	<classpathentry kind="lib" path="lib/commons-vfs2-2.0-sources.jar"/>
	<classpathentry kind="lib" path="lib/jackrabbit-standalone-2.5.0.jar"/>
	<classpathentry kind="output" path="bin"/>
</classpath>


Turn up logging to see what providers VFS is loading.  *How can I do this?*
 

org.apache.commons.vfs2.FileSystemException: Badly formed URI
"smb://Administrator:***@10.21.20.21/e/Varie/WinXP_key.txt".
	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.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(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-tp4634909p4634920.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message