Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FCE1DE2D for ; Thu, 16 Aug 2012 06:50:48 +0000 (UTC) Received: (qmail 22907 invoked by uid 500); 16 Aug 2012 06:50:47 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 22712 invoked by uid 500); 16 Aug 2012 06:50:42 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 22391 invoked by uid 99); 16 Aug 2012 06:50:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 06:50:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EEDE52C5BE1 for ; Thu, 16 Aug 2012 06:50:37 +0000 (UTC) Date: Thu, 16 Aug 2012 17:50:37 +1100 (NCT) From: "Felix Meschberger (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <2007616583.17871.1345099837979.JavaMail.jiratomcat@arcas> In-Reply-To: <1051219756.13389.1345037797976.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (OAK-245) Add import for org.h2 in oak-mk bundle MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435797#comment-13435797 ] Felix Meschberger commented on OAK-245: --------------------------------------- > I don't consider this "a bug". Let's say it doesn't work well with OSGi. Ok, lets land in on "doesn't cope well with dynamic module systems". See also http://blog.meschberger.ch/2010/12/classforname-probably-not.html and BJ Hargrave's findings on this. > 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, 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} > > org.h2;resolution:=optional, > * > > {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