Martin, I can't remember exactly but I think that the SFTP protocol is not correctly working with the commons-vfs version we currently use in servicemix-vfs component. One thing you can maybe try is adding a trailing slash to your path. Perhaps that does the trick...if not then check out what is supported in the used commons-vfs version. I think it's a rather old version.
Regards Lars 2010/5/27 Martin S. <[email protected]>: > > I am traying to fetch file from an sftp-server using vsf:poller. Here is the > config: > > <vfs:poller service="proj:filePoller" endpoint="poller" > path="sftp://user:[email protected]/HOME/OUT" > targetService="proj:fileSender" period="10000" > deleteFile="true" recursive="false"> > > <property name="marshaler"> > <bean > class="org.apache.servicemix.components.util.BinaryFileMarshaler" > /> > </property> > > </vfs:poller> > > However when the poller is running i get the following exception: > > java.io.IOException: Failed to initialize file system manager: > org.apache.commons.vfs.FileSystemException: Badly formed URI > "sftp://user:[email protected]/HOME/OUT". > > My first guess was that the jsch bundle is missing so i added and activated > the bundle org.apache.servicemix.bundles.jsch (Version 0.1.42.1) but this > did not help either. Still keep gettins this exception. > > Any help is welcome! > Martin > -- > View this message in context: > http://old.nabble.com/Exception-when-using-vsf%3Apoller-with-sftp-%28ServiceMix-4.2%29-tp28700187p28700187.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- http://lhein.blogspot.com
