Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-245

Add import for org.h2 in oak-mk bundle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • mk

    Description

      The oak-mk bundle depends on H2 database. It internally uses Class.forName('org.h2.Driver") to load the H2 driver. Due to usage of Class.forName Bnd is not able to add org.h2 package to Import-Package list. So it should have an explicit entry in the maven-bundle-plugin config as shown below

      <Import-Package>
        org.h2;resolution:=optional,
        *
      </Import-Package>
      

      Without this MicroKernalService loading would fail with a CNFE

      Attachments

        1. import-h2.patch
          5 kB
          Chetan Mehrotra
        2. OAK-245-load-driver.patch
          13 kB
          Chetan Mehrotra

        Activity

          People

            mduerig Michael Dürig
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: