[ 
https://issues.apache.org/jira/browse/OAK-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435106#comment-13435106
 ] 

Felix Meschberger commented on OAK-245:
---------------------------------------

bq. Class.forName('org.h2.Driver")

Does it do forName without a class loader ? This would constitute a bug in 
itself.
                
> 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
>              Labels: osgi
>         Attachments: import-h2.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

        

Reply via email to