James Netherton created CAMEL-13396:
---------------------------------------
Summary: camel-leveldb can no longer use non-native leveldb
libraries
Key: CAMEL-13396
URL: https://issues.apache.org/jira/browse/CAMEL-13396
Project: Camel
Issue Type: Bug
Components: camel-leveldb
Affects Versions: 3.0.0, 2.23.2
Reporter: James Netherton
I was testing out the 2.23.2 release with WildFly-Camel and our camel-leveldb
integration test has started to fail with:
java.lang.NoClassDefFoundError: org/fusesource/leveldbjni/JniDBFactory
I think the changes introduced in CAMEL-13368 have caused this. Specifically
the static import for the factory class:
https://github.com/apache/camel/blob/camel-2.23.x/components/camel-leveldb/src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java#L36
There's a dedicated private getFactory() method in LevelDBFile, which is more
friendly for modular class loading environments. So I think the code should be
using that instead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)