Martin Lichtin created SSHD-876:
-----------------------------------
Summary: Cannot load 'org/apache/sshd/sshd-version.properties' in
OSGi (Karaf) environment
Key: SSHD-876
URL: https://issues.apache.org/jira/browse/SSHD-876
Project: MINA SSHD
Issue Type: Wish
Affects Versions: 1.6.0
Reporter: Martin Lichtin
{noformat}
2018-12-13T10:05:32,662 | WARN | [6d24c4ca]-nio2-thread-1 |
VersionProperties$LazyHolder | fig.VersionProperties$LazyHolder 75 | 135
- org.apache.sshd.core - 1.6.0 | Failed (FileNotFoundException) to load version
properties: Resource does not exists
{noformat}
It looks like this is because it's not using a correct classloader to access
this resource.
ThreadUtils.resolveDefaultClassLoader(Class<?> anchor) should in my view first
consider the anchor class loader. Otherwise it is using the TCCL which may not
have access to the sshd bundle.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)