jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Rubio Rey <tk42...@gmail.com>
Subject Migration to 2.0.0
Date Thu, 15 Dec 2016 09:04:09 GMT
Hi,

I am trying to migrate an application from 1.9.1 to 2.0.0 but I am
experiencing some problems.

I am using the sshClient as follows:

 org.jclouds.ssh.SshClient sshClient =
context.utils().sshFactory().create(HostAndPort.fromParts(host,
port),LoginCredentials.builder().user(username).password(password).build());


sshClient.put(path, content);

But I have the following error:

Dec 15, 2016 7:59:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [mvc-dispatcher] in context with path
[] threw exception [Handler processing failed; nested exception is
java.lang.NoSuchMethodError:
net.schmizz.sshj.userauth.keyprovider.OpenSSHKeyFile.init(Ljava/lang/String;Ljava/lang/String;)V]
with root cause
java.lang.NoSuchMethodError:
net.schmizz.sshj.userauth.keyprovider.OpenSSHKeyFile.init(Ljava/lang/String;Ljava/lang/String;)V
    at
org.jclouds.sshj.SSHClientConnection.create(SSHClientConnection.java:162)
    at
org.jclouds.sshj.SSHClientConnection.create(SSHClientConnection.java:49)
    at org.jclouds.sshj.SshjSshClient.acquire(SshjSshClient.java:195)
    at org.jclouds.sshj.SshjSshClient.connect(SshjSshClient.java:224)
    at org.jclouds.sshj.SshjSshClient.acquire(SshjSshClient.java:212)
    at
org.jclouds.sshj.SshjSshClient$PutConnection.create(SshjSshClient.java:320)
    at
org.jclouds.sshj.SshjSshClient$PutConnection.create(SshjSshClient.java:298)
    at org.jclouds.sshj.SshjSshClient.acquire(SshjSshClient.java:195)
    at org.jclouds.sshj.SshjSshClient.put(SshjSshClient.java:355)
    at org.jclouds.sshj.SshjSshClient.put(SshjSshClient.java:171)

Does anyone know how can I fix this problem ?

Regards
Ruben

Mime
View raw message