karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yurii Rashkovskii (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-4724) bin/client CLASSPATH is hardcoded
Date Thu, 22 Sep 2016 01:36:20 GMT
Yurii Rashkovskii created KARAF-4724:

             Summary: 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

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:

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 / 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
	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)

Suggestion: scan files in lib (lib/**/*.jar or something) and add them all to bin/client.


This message was sent by Atlassian JIRA

View raw message