Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5530

Configuring DocumentNodeStore to use FileDataStore with latest Sling Launchpad doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Launchpad Builder 9
    • Launchpad, Oak
    • 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

      Attachments

        1. FileDataStore.patch
          0.7 kB
          Andrei Dulceanu

        Activity

          People

            rombert Robert Munteanu
            adulceanu Andrei Dulceanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: