[
https://issues.apache.org/jira/browse/KARAF-4724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grzegorz Grzybek updated KARAF-4724:
------------------------------------
Description:
As per discussion on IRC, in certain cases it would make sense to add
bouncycastle to an assembled karaf distribution. Following manual, everything
is ok on the container's side (although it would have been nice if it was
simpler), but this doesn't work well with the client (bin/client) as its
classpath is hardcoded:
https://github.com/apache/karaf/blob/karaf-4.0.6/assemblies/features/base/src/main/filtered-resources/resources/bin/client#L272-L276
Without seeing BC classes, this is what client produces:
{noformat}
Error starting ssh agent for: org/bouncycastle/openssl/PEMParser
Logging in as karaf
362 [sshd-SshClient[a4102b8]-nio2-thread-2] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
/0.0.0.0:8101 presented unverified RSA key:
52:37:d6:79:06:dc:98:73:41:94:4c:13:88:08:c0:4b
367 [sshd-SshClient[a4102b8]-nio2-thread-3] WARN
org.apache.sshd.client.session.ClientSessionImpl - Exception caught
java.lang.NullPointerException
at
org.apache.sshd.agent.common.AgentDelegate.getIdentities(AgentDelegate.java:40)
at
org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:79)
at
org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212)
at
org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
{noformat}
Suggestion: scan files in lib (lib/**/*.jar or something) and add them all to
bin/client.
Thoughts?
was:
As per discussion on IRC, in certain cases it would make sense to add
bouncycastle to an assembled karaf distribution. Following manual, everything
is ok on the container's side (although it would have been nice if it was
simpler), but this doesn't work well with the client (bin/client) as its
classpath is hardcoded:
https://github.com/apache/karaf/blob/karaf-4.0.6/assemblies/features/base/src/main/filtered-resources/resources/bin/client#L272-L276
Without seeing BC classes, this is what client produces:
<pre>
Error starting ssh agent for: org/bouncycastle/openssl/PEMParser
Logging in as karaf
362 [sshd-SshClient[a4102b8]-nio2-thread-2] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
/0.0.0.0:8101 presented unverified RSA key:
52:37:d6:79:06:dc:98:73:41:94:4c:13:88:08:c0:4b
367 [sshd-SshClient[a4102b8]-nio2-thread-3] WARN
org.apache.sshd.client.session.ClientSessionImpl - Exception caught
java.lang.NullPointerException
at
org.apache.sshd.agent.common.AgentDelegate.getIdentities(AgentDelegate.java:40)
at
org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:79)
at
org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212)
at
org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
</pre>
Suggestion: scan files in lib (lib/**/*.jar or something) and add them all to
bin/client.
Thoughts?
> bin/client CLASSPATH is hardcoded
> ---------------------------------
>
> Key: KARAF-4724
> URL: https://issues.apache.org/jira/browse/KARAF-4724
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-tooling
> Affects Versions: 4.0.6
> Reporter: Yurii Rashkovskii
> Assignee: Jean-Baptiste Onofré
>
> As per discussion on IRC, in certain cases it would make sense to add
> bouncycastle to an assembled karaf distribution. Following manual, everything
> is ok on the container's side (although it would have been nice if it was
> simpler), but this doesn't work well with the client (bin/client) as its
> classpath is hardcoded:
> https://github.com/apache/karaf/blob/karaf-4.0.6/assemblies/features/base/src/main/filtered-resources/resources/bin/client#L272-L276
> Without seeing BC classes, this is what client produces:
> {noformat}
> Error starting ssh agent for: org/bouncycastle/openssl/PEMParser
> Logging in as karaf
> 362 [sshd-SshClient[a4102b8]-nio2-thread-2] WARN
> org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
> /0.0.0.0:8101 presented unverified RSA key:
> 52:37:d6:79:06:dc:98:73:41:94:4c:13:88:08:c0:4b
> 367 [sshd-SshClient[a4102b8]-nio2-thread-3] WARN
> org.apache.sshd.client.session.ClientSessionImpl - Exception caught
> java.lang.NullPointerException
> at
> org.apache.sshd.agent.common.AgentDelegate.getIdentities(AgentDelegate.java:40)
> at
> org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:79)
> at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212)
> at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
> {noformat}
> Suggestion: scan files in lib (lib/**/*.jar or something) and add them all to
> bin/client.
> Thoughts?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)