You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Tom Condon <to...@mac.com> on 2009/05/06 02:46:17 UTC
The state of sftp support in ServiceMix 3.3?
I have been trying to get it to work. Had to add jsch-0.1.41.jar to the lib
optional folder but I keep getting this error now.
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi' defined in file
[/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]:
Invocation of init method failed; nested exception is
javax.jbi.JBIException: Failed to initialize file system manager:
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server
at "sftp://tcondon:xxxxx@10.0.1.46/".
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in file
[/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]:
Invocation of init method failed; nested exception is
javax.jbi.JBIException: Failed to initialize file system manager:
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server
at "sftp://tcondon:xxxxxxx@10.0.1.46/".
I am modifying the vfs example and here is my xml file:
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:foo="http://servicemix.apache.org/demo/">
<bean id="jndi"
class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
factory-method="makeInitialContext" singleton="true" />
<!-- the JBI container -->
<sm:container id="jbi" useMBeanServer="true" createMBeanServer="true">
<sm:activationSpecs>
<!-- Look for files in the inbox directory -->
<sm:activationSpec componentName="filePoller" service="foo:filePoller"
destinationService="foo:receiver">
<sm:component>
<bean class="org.apache.servicemix.components.vfs.FilePoller">
<property name="path"
value="sftp://tcondon:xxxxxxx@10.0.1.46/Users/tcondon/servicemix-inbox/"/>
<property name="period" value="1000"/>
<property name="marshaler">
<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler">
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<!-- Write files to the outbox directory -->
<sm:activationSpec componentName="fileSender" service="foo:receiver">
<sm:component>
<bean class="org.apache.servicemix.components.vfs.FileWriter">
<property name="path"
value="sftp://tcondon:xxxxxxx@10.0.1.46/Users/tcondon/servicemix-outbox"/>
<property name="marshaler">
<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler">
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
</beans>
I am running MacOSX 10.5.6 and I can log into sftp via the terminal just
fine.
Any Ideas?
THanks,
Tom
--
View this message in context: http://www.nabble.com/The-state-of-sftp-support-in-ServiceMix-3.3--tp23398308p23398308.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: The state of sftp support in ServiceMix 3.3?
Posted by Lars Heinemann <lh...@apache.org>.
Hi Tom,
I don't know the LW component that good but you could use the JBI
component instead.
See http://servicemix.apache.org/servicemix-vfs.html for the component wiki.
Regards
Lars
2009/5/6 Tom Condon <to...@mac.com>:
>
> I have been trying to get it to work. Had to add jsch-0.1.41.jar to the lib
> optional folder but I keep getting this error now.
>
> Caught: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jbi' defined in file
> [/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]:
> Invocation of init method failed; nested exception is
> javax.jbi.JBIException: Failed to initialize file system manager:
> org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server
> at "sftp://tcondon:xxxxx@10.0.1.46/".
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'jbi' defined in file
> [/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]:
> Invocation of init method failed; nested exception is
> javax.jbi.JBIException: Failed to initialize file system manager:
> org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server
> at "sftp://tcondon:xxxxxxx@10.0.1.46/".
>
> I am modifying the vfs example and here is my xml file:
>
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
> xmlns:foo="http://servicemix.apache.org/demo/">
>
> <bean id="jndi"
> class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
> factory-method="makeInitialContext" singleton="true" />
>
> <!-- the JBI container -->
> <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true">
>
> <sm:activationSpecs>
>
> <!-- Look for files in the inbox directory -->
> <sm:activationSpec componentName="filePoller" service="foo:filePoller"
> destinationService="foo:receiver">
> <sm:component>
> <bean class="org.apache.servicemix.components.vfs.FilePoller">
> <property name="path"
> value="sftp://tcondon:xxxxxxx@10.0.1.46/Users/tcondon/servicemix-inbox/"/>
> <property name="period" value="1000"/>
> <property name="marshaler">
> <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler">
> </bean>
> </property>
> </bean>
> </sm:component>
> </sm:activationSpec>
>
> <!-- Write files to the outbox directory -->
> <sm:activationSpec componentName="fileSender" service="foo:receiver">
> <sm:component>
> <bean class="org.apache.servicemix.components.vfs.FileWriter">
> <property name="path"
> value="sftp://tcondon:xxxxxxx@10.0.1.46/Users/tcondon/servicemix-outbox"/>
> <property name="marshaler">
> <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler">
> </bean>
> </property>
> </bean>
> </sm:component>
> </sm:activationSpec>
>
> </sm:activationSpecs>
>
> </sm:container>
>
> </beans>
>
> I am running MacOSX 10.5.6 and I can log into sftp via the terminal just
> fine.
>
> Any Ideas?
>
> THanks,
>
> Tom
>
> --
> View this message in context: http://www.nabble.com/The-state-of-sftp-support-in-ServiceMix-3.3--tp23398308p23398308.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
http://lhein.blogspot.com