I am using servicemix 4.2 and Camel route builder.

This is what camel-ftp headers look like:

camel-ftp (186)
---------------
Manifest-Version = 1.0
Built-By = cruise
Created-By = Apache Maven Bundle Plugin
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
Import-Package =
com.jcraft.jsch,javax.net.ssl,org.apache.camel;version="[2.2,2.
3)",org.apache.camel.component.file;version="[2.2,2.3)",org.apache.camel.impl;ve
rsion="[2.2,2.3)",org.apache.camel.processor.idempotent;version="[2.2,2.3)",org.
apache.camel.spi;version="[2.2,2.3)",org.apache.camel.util;version="[2.2,2.3)",o
rg.apache.commons.logging;version="[1.1,2)",org.apache.commons.net.ftp;version="
[2.0,3)"
Bnd-LastModified = 1265896946072
Export-Package =
org.apache.camel.component.file.remote;uses:="org.apache.common
s.net.ftp,org.apache.camel.component.file,org.apache.camel,org.apache.camel.util
,org.apache.commons.logging,javax.net.ssl,org.apache.camel.spi,org.apache.camel.
impl,org.apache.camel.processor.idempotent,com.jcraft.jsch";version="2.2.0.fuse-
01-00"
Bundle-Version = 2.2.0.fuse-01-00
Ignore-Package = org.apache.camel.component.file.remote
Bundle-Name = camel-ftp
Bundle-Description = Camel FTP support
Build-Jdk = 1.5.0_12
Bundle-DocURL = http://open.iona.com
Bundle-ManifestVersion = 2
Bundle-Vendor = IONA Open Source Community
Implementation-Title = Apache Camel
Bundle-SymbolicName = org.apache.camel.camel-ftp
Tool = Bnd-0.0.357
Implementation-Version = 2.2.0-fuse-01-00


And this is what my jsch headers looks like:

Bundle 246
----------
Manifest-Version = 1.0
Created-By = 1.4.0 (Sun Microsystems Inc.)
Import-Package = com.jcraft.jzlib;resolution =
=optional,javax.crypto,javax.cryp
to.interfaces,javax.crypto.spec
Export-Package =
com.jcraft.jsch;version="0.1.42",com.jcraft.jsch.jcraft;uses =
="com.jcraft.jzlib,com.jcraft.jsch";version="0.1.42",com.jcraft.jsch.jce;uses:="
com.jcraft.jsch,javax.crypto.spec,javax.crypto,javax.crypto.interfaces";version=
"0.1.42"

Am I missing something? Or may be you can point to me where I can download
the right jsch.

Thanks.

kr.



Jean-Baptiste Onofré wrote:
> 
> Hi Lekkie,
> 
> Could you remember me some informations such as:
> - the ServiceMix version that you use
> - if you use JBI, your xbean and Camel route builder
> 
> Did you check if no other jsch jar is present in the classloader ?
> 
> I checked in Camel 2.2.0, in the FTP component and the jsch version used
> is the 0.1.40.
> You can have a look here:
> http://svn.apache.org/repos/asf/camel/tags/camel-2.2.0/components/camel-ftp/pom.xml
> 
> Regards
> JB
> 
>  On Tue 04/05/10 13:28, "lekkie" [email protected] wrote:
>> 
>> Hi while trying to work with camel-sftp I encountered the error
>> described
> below:
>> 
>> java.lang.NoSuchMethodError:
>> com.jcraft.jsch.Session.setConfig(Ljava/lang/String;Ljava/lang/String;)V
> at
>> org.apache.camel.component.file.remote.SftpOperations.createSession(SftpOpe
>> rations.java:138)
> at
>> org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperation
>> s.java:82)
> at
>> org.apache.camel.component.file.remote.RemoteFileConsumer.connectIfNecessar
>> y(RemoteFileConsumer.java:93)
> at
>> org.apache.camel.component.file.remote.RemoteFileConsumer.prePollCheck(Remo
>> teFileConsumer.java:47)
> at
>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsume
>> r.java:67)
> at
>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:
>> 106)
> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
>> 
>> I have stopped the old jsch version 0.1.31 and installed 0.1.42, but the
>> err
> is still the same.
>> 
>> kindly help out.
>> -- 
>> View this message in context:
>> http://old.nabble.com/java.lang.NoSuchMethodError%3A-com.jcraft
>> .jsch.Session.setConfig-tp28446137p28446137.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/java.lang.NoSuchMethodError%3A-com.jcraft.jsch.Session.setConfig-tp28446137p28446961.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to