camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel-sftp component problem
Date Wed, 14 Apr 2010 13:18:16 GMT
On Wed, Apr 14, 2010 at 3:14 PM, hisham <hishberlin@hotmail.com> wrote:
>
> Thanks for the quick reply. im using fuse servicemix 4.2 and camel-ftp
> feature already installed, so i think all dependency should be resolved.
>

Could you check out which version of the jsch jar the OSGi container
list as installed.


>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Do you have the right classes on the classpath?
>>
>> Here is the maven dependency list which can help you to see if you got
>> all the required jars
>>
>> [INFO] [dependency:list]
>> [INFO]
>> [INFO] The following files have been resolved:
>> [INFO]    aopalliance:aopalliance:jar:1.0:test
>> [INFO]    com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile
>> [INFO]    commons-logging:commons-logging:jar:1.1.1:test
>> [INFO]    commons-logging:commons-logging-api:jar:1.1:compile
>> [INFO]    commons-net:commons-net:jar:2.0:compile
>> [INFO]    javax.activation:activation:jar:1.1:compile
>> [INFO]    javax.xml.bind:jaxb-api:jar:2.1:compile
>> [INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
>> [INFO]    jsch:jsch:jar:0.1.40:compile
>> [INFO]    junit:junit:jar:4.4:test
>> [INFO]    log4j:log4j:jar:1.2.14:test
>> [INFO]    org.apache.camel:camel-core:jar:2.3-SNAPSHOT:compile
>> [INFO]    org.apache.camel:camel-spring:jar:2.3-SNAPSHOT:test
>> [INFO]    org.apache.camel:camel-test:jar:2.3-SNAPSHOT:test
>> [INFO]    org.apache.ftpserver:ftplet-api:jar:1.0.3:test
>> [INFO]    org.apache.ftpserver:ftpserver-core:jar:1.0.3:test
>> [INFO]    org.apache.mina:mina-core:jar:2.0.0-M6:test
>> [INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
>> [INFO]    org.slf4j:slf4j-api:jar:1.5.10:test
>> [INFO]    org.slf4j:slf4j-log4j12:jar:1.5.10:test
>> [INFO]    org.springframework:spring-aop:jar:2.5.6:test
>> [INFO]    org.springframework:spring-beans:jar:2.5.6:test
>> [INFO]    org.springframework:spring-context:jar:2.5.6:test
>> [INFO]    org.springframework:spring-core:jar:2.5.6:test
>> [INFO]    org.springframework:spring-tx:jar:2.5.6:test
>>
>>
>> On Wed, Apr 14, 2010 at 2:48 PM, hisham <hishberlin@hotmail.com> wrote:
>>>
>>> i get error, while  trying to route files to sftp component. here is my
>>> code
>>>
>>> <route id="sftpsenderRoute">
>>>         <from uri="file:d:/test" />
>>>        <to uri="sftp://camel@localhost?password=test"/>
>>> </route>
>>>
>>> the error:
>>> Caused by: java.lang.NoSuchMethodError:
>>> com.jcraft.jsch.Session.setConfig(Ljava/lang/String;Ljava/lang/String;)V
>>>        at
>>> org.apache.camel.component.file.remote.SftpOperations.createSession(SftpOperations.java:138)
>>>        at
>>> org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:82)
>>>        at
>>> org.apache.camel.component.file.remote.RemoteFileProducer.connectIfNecessary(RemoteFileProducer.java:171)
>>>        at
>>> org.apache.camel.component.file.remote.RemoteFileProducer.preWriteCheck(RemoteFileProducer.java:100)
>>>        at
>>> org.apache.camel.component.file.GenericFileProducer.processExchange(GenericFileProducer.java:75)
>>>        at
>>> org.apache.camel.component.file.remote.RemoteFileProducer.process(RemoteFileProducer.java:50)
>>>        at
>>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
>>>        at
>>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
>>>        at
>>> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
>>>        at
>>> org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
>>>        at
>>> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
>>>        at
>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>>        at
>>> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>>>        at
>>> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>>>        at
>>> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
>>>        at
>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>>        at
>>> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
>>>        at
>>> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
>>>        ... 20 more
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/camel-sftp-component-problem-tp28242146p28242146.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: http://old.nabble.com/camel-sftp-component-problem-tp28242146p28242296.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message