Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C536630B for ; Mon, 13 Jun 2011 23:07:25 +0000 (UTC) Received: (qmail 76696 invoked by uid 500); 13 Jun 2011 23:07:25 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 76452 invoked by uid 500); 13 Jun 2011 23:07:24 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 76444 invoked by uid 99); 13 Jun 2011 23:07:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 23:07:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of niall.pemberton@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 23:07:20 +0000 Received: by iyi20 with SMTP id 20so4837192iyi.30 for ; Mon, 13 Jun 2011 16:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=zfTM+fsKgm1fQonRL69THMbDML9y6SJkO24FharmzyA=; b=rYfNQRZd+oreg5eNfTn7vgqzMiD5JMtMr+6VuQNG3ac1Uxgv5MgBsNzdM2SEe+pVzE 0LnXHvhW7iO92KClkPJaBKZdk/ZbFnbQti1Hxr0lpdDJ/lBcfRDxJTBemJDGFu7qbCCG SznIct3i7GsYtF6ptUpp+L206PRX+z4pFWbRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Iw/pa51Q0CCckSJ/1yTYR3UujLLKI/J4ps5i2nlBEfO4c72CyX3IuhzUuP5mTcl14o lv5vl3QrNGXPKghfJSGTxDkcpfqwqXnLyP1iEqhmoNJqFCkB/oKoTHi8Tm6RkEdjC1U5 n3AR83dk3WIer0G+D8X+o50CFiwcl6jkiW82g= MIME-Version: 1.0 Received: by 10.42.148.134 with SMTP id r6mr6083268icv.138.1308006419537; Mon, 13 Jun 2011 16:06:59 -0700 (PDT) Received: by 10.42.227.131 with HTTP; Mon, 13 Jun 2011 16:06:59 -0700 (PDT) In-Reply-To: References: <4DF31E3A.9020908@gmail.com> Date: Tue, 14 Jun 2011 00:06:59 +0100 Message-ID: Subject: Re: [all] OSGI bundle info - WAS [jira] [Created] (DBCP-363) dbcp bundle should use DynamicImport From: Niall Pemberton To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Jun 14, 2011 at 12:04 AM, Niall Pemberton wrote: > On Sat, Jun 11, 2011 at 8:50 AM, Phil Steitz wrot= e: >> This is over my head. =A0For all I know this may apply to all of our >> components, since I think the metadata comes from Commons Parent. >> Can someone knowledgeable in OSGI please have a look and comment on >> the ticket and post back here if there is something we need to >> change in Commons Parent? > > Sorry I don't have an answer for you, but I have a couple of comments: > > In the past I've asked for advice on the Felix lists and they've been > very helpful. So if no one shows up to reply here, then you might try > that. > > =A0 =A0http://felix.apache.org/site/mailinglists.html > > It seems from the two comments on the ticket that theres disagreement > on how this should be fixed - but if it does turn out that DBCP needs > to configure the maven-bundle-plugin in a slightly different way than > the default provided in commons-parent, then all the default OSGI > "instructions" for the maven-bundle-plugin can be overriden (including > DynamicImport) in DBCP's pom.xml using properties. > > So for example, if you look at the commons-chain pom.xml[1] it > excludes javax.portlet from the instruction and > includes it in the instruction: > > =A0 =A0 > =A0 =A0 =A0 =A0!javax.portlet,* > =A0 =A0 =A0 =A0javax.portlet > =A0 =A0 Sorry, wrong URL - chain pom is here: http://svn.apache.org/repos/asf/commons/proper/chain/trunk/pom.xml > Niall > > [1] http://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk/p= om.xml > >> Thanks! >> >> Phil >> >> -------- Original Message -------- >> Subject: =A0 =A0 =A0 =A0[jira] [Created] (DBCP-363) dbcp bundle should u= se >> DynamicImport >> Date: =A0 Thu, 9 Jun 2011 18:41:58 +0000 (UTC) >> From: =A0 Felix Mayerhuber (JIRA) >> Reply-To: =A0 =A0 =A0 issues@commons.apache.org >> To: =A0 =A0 issues@commons.apache.org >> >> >> >> dbcp bundle should use DynamicImport >> ------------------------------------ >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: DBCP-363 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/brow= se/DBCP-363 >> =A0 =A0 =A0 =A0 =A0 =A0 Project: Commons Dbcp >> =A0 =A0 =A0 =A0 =A0Issue Type: Bug >> =A0 =A0Affects Versions: 1.4, 1.3 >> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Felix Mayerhuber >> >> >> The bundle provided in the maven central of the commons.dbcp doesn't hav= e a DynamicImport defined. This resolves in following error: >> If you want to use a BasicDataSource class as dataSource and the class i= s provided by the osgi environment (equinox, ...) the dataSource is not abl= e to be created due to a ClassNotFoundException. If the bundle would have s= et DynamicImport it works. (I had to change from your bundle to the commons= .dbcp bundle provided by servicemix, because there the DynamicImport is set= ) >> >> -- >> This message is automatically generated by JIRA. >> For more information on JIRA, see: http://www.atlassian.com/software/jir= a >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org