Well, I was able to update "assembly/pom.xml" to use a local copy
jclouds-karaf features.xml file. Indeed, maven downloaded the jar, I can
see it in the final packaging now:
./system/com/jcraft/jsch.agentproxy.usocket-jna/0.0.8/jsch.agentproxy.usocket-jna-0.0.8.jar.
However, the NoClassDefFoundError is still persisting.

Some quick investigation on my side points to a similar issue:

1. Downloaded the pre-built ZIP from http://search.maven.org/remotecontent?filepath=org/apache/jclouds/cli/jclouds-cli-assembly/1.9.0/jclouds-cli-assembly-1.9.0.zip
2. Unzipped and tried to run jclouds:node-list
3. Since I'm running on Windows, my error is slightly different:

8) Error injecting constructor, java.lang.NoClassDefFoundError: com/jcraft/jsch/
agentproxy/connector/PageantConnector
...

What I'm wondering is whether the exception being caught by the try/catch block that tries to find an SSH Agent isn't too restrictive [1].

I'll see if I can mess around a bit with the deps in my installation to see if that makes any difference.

Regards

ap

[1] https://github.com/jclouds/jclouds/blob/master/drivers/sshj/src/main/java/org/jclouds/sshj/config/SshjSshClientModule.java#L56-L58

Reply via email to