jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (OAK-245) Add import for org.h2 in oak-mk bundle
Date Wed, 22 Aug 2012 14:05:43 GMT

     [ https://issues.apache.org/jira/browse/OAK-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Dürig resolved OAK-245.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.5

Applied the second patch in revision 1376057
Thanks Chetan Mehrotra for the patch
                
> Add import for org.h2 in oak-mk bundle
> --------------------------------------
>
>                 Key: OAK-245
>                 URL: https://issues.apache.org/jira/browse/OAK-245
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mk
>            Reporter: Chetan Mehrotra
>            Assignee: Michael Dürig
>              Labels: osgi
>             Fix For: 0.5
>
>         Attachments: import-h2.patch, OAK-245-load-driver.patch
>
>
> 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
> {code:xml}
> <Import-Package>
>   org.h2;resolution:=optional,
>   *
> </Import-Package>
> {code}
> Without this MicroKernalService loading would fail with a CNFE

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message