You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Martin Schäfer (JIRA)" <ji...@apache.org> on 2010/05/31 21:30:52 UTC
[jira] Commented: (SMX4-530) servicemix-vfs fails with sftp
[ https://issues.apache.org/activemq/browse/SMX4-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59608#action_59608 ]
Martin Schäfer commented on SMX4-530:
-------------------------------------
I did some further investigation. I enabled the debug log for the class org.apache.commons.vfs.impl.StandardFileSystemManager I can see this entry:
Skipping provider "org.apache.commons.vfs.provider.sftp.SftpFileProvider" because required class "javax.crypto.Cipher" is not available.
This seems strange because I can see the package javax.crypto being imported for Java 1.6 in etc/config.properties:
jre-1.6=, \
com.sun.org.apache.xalan.internal.xsltc.trax, \
com.sun.org.apache.xerces.internal.dom, \
com.sun.org.apache.xerces.internal.jaxp, \
com.sun.org.apache.xerces.internal.xni, \
com.sun.jndi.ldap, \
javax.accessibility, \
# javax.activation, \
javax.activity, \
# javax.annotation, \
# javax.annotation.processing, \
javax.crypto, \
javax.crypto.interfaces, \
javax.crypto.spec, \
javax.imageio, \
...
what's up here?
> servicemix-vfs fails with sftp
> ------------------------------
>
> Key: SMX4-530
> URL: https://issues.apache.org/activemq/browse/SMX4-530
> Project: ServiceMix 4
> Issue Type: Bug
> Components: Bundles
> Affects Versions: 4.2.0
> Environment: Apache ServiceMix 4.2 standard installation with additional bundle org.apache.servicemix.bundles.jsch version 0.1.42.1
> running on:
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> on Windows 7, 64 Bit
> Reporter: Martin Schäfer
>
> When defining and running a vsf:poller using an sftp URL the following exception is thrown:
> java.io.IOException: Failed to initialize file system manager: org.apache.commons.vfs.FileSystemException: Badly formed URI "sftp://user:somepw@111.111.111.111/HOME/OUT/".
> at org.apache.servicemix.vfs.FileObjectResolver.resolveToFileObject(FileObjectResolver.java:66)
> at org.apache.servicemix.vfs.VFSPollingEndpoint.poll(VFSPollingEndpoint.java:229)
> at org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:202)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
> configuration used:
> <?xml version="1.0"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:proj="http://servicemix.org/demo/"
> xmlns:file="http://servicemix.apache.org/file/1.0"
> xmlns:vfs="http://servicemix.apache.org/vfs/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
> http://servicemix.apache.org/file/1.0 http://servicemix.apache.org/schema/servicemix-file-3.1.2.xsd
> http://servicemix.apache.org/vfs/1.0 http://servicemix.apache.org/schema/servicemix-vfs-2009.01.xsd">
> <file:sender service="proj:fileSender" endpoint="endpoint"
> directory="file:///C:/Temp/outbox" autoCreateDirectory="true">
> <property name="marshaler">
> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
> </property>
> </file:sender>
> <vfs:poller service="proj:filePoller" endpoint="poller"
> path="sftp://user:somepw@111.111.111.111/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>
>
> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
> </beans>
> After discussing this in the forum it seems that the sftp protocol handler for vfs is not registered. See http://old.nabble.com/Exception-when-using-vsf%3Apoller-with-sftp-%28ServiceMix-4.2%29-tp28700187p28706201.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.