Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I tried to configure DocumentNodeStore to use FileDataStore with Sling Launchpad 8, as advised in [0].
For this I created in ${sling.home}/install the following configurations:
org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.cfg
customBlobStore=true
org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg
minRecordLength=4096
path=/some/path
When starting launchpad with java -jar org.apache.sling.launchpad-9-SNAPSHOT.jar -Dsling.fileinstall.dir=sling/install the following exception is thrown:
ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore)] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore(196)] Error during instantiation of the implementation object (java.lang.NoClassDefFoundError: org/apache/jackrabbit/core/data/DataStore)
The reason is that org.apache.jackrabbit/jackrabbit-data/${jackrabbit.version} bundle is missing from the provisioning model. Adding it solved the problem.
[0] https://jackrabbit.apache.org/oak/docs/osgi_config.html#config-sling