commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <>
Subject Re: [all] OSGI bundle info - WAS [jira] [Created] (DBCP-363) dbcp bundle should use DynamicImport
Date Mon, 13 Jun 2011 23:04:13 GMT
On Sat, Jun 11, 2011 at 8:50 AM, Phil Steitz <> wrote:
> This is over my head.  For 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

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<Import-Package> instruction and
includes it in the <DynamicImport-Package> instruction:




> Thanks!
> Phil
> -------- Original Message --------
> Subject:        [jira] [Created] (DBCP-363) dbcp bundle should use
> DynamicImport
> Date:   Thu, 9 Jun 2011 18:41:58 +0000 (UTC)
> From:   Felix Mayerhuber (JIRA) <>
> Reply-To:
> To:
> dbcp bundle should use DynamicImport
> ------------------------------------
>                 Key: DBCP-363
>                 URL:
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.4, 1.3
>            Reporter: Felix Mayerhuber
> The bundle provided in the maven central of the commons.dbcp doesn't have a DynamicImport
defined. This resolves in following error:
> If you want to use a BasicDataSource class as dataSource and the class is provided by
the osgi environment (equinox, ...) the dataSource is not able to be created due to a ClassNotFoundException.
If the bundle would have set 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:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message