Hi Rubén,

Can you share the output of running the "mvn dependency:tree" command
in your project? Let's first see if there are dependency conflicts.


I.



On 15 December 2016 at 10:04, Ruben Rubio Rey <tk42...@gmail.com> wrote:
> 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
>

Reply via email to