You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2016/08/02 16:59:20 UTC

[jira] [Commented] (DBCP-465) OSGi import-package has repeated packages causing a runtime failure

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

Matt Sicker commented on DBCP-465:
----------------------------------

It appears the issue was because of where the {{*}} was located in the {{Import-Package}} instruction in the pom. Putting it at the end generate the correct manifest. I'd like to add a unit test, though, and that's less trivial.

> OSGi import-package has repeated packages causing a runtime failure
> -------------------------------------------------------------------
>
>                 Key: DBCP-465
>                 URL: https://issues.apache.org/jira/browse/DBCP-465
>             Project: Commons Dbcp
>          Issue Type: Bug
>         Environment: Karaf 3.0.4, Java 8, DBCP 2.2 rc1
>            Reporter: Matt Sicker
>            Priority: Blocker
>
> Building from trunk or 2.2rc1, here's the import-package manifest:
> {code}
> Import-Package: javax.management,javax.naming,javax.naming.spi,javax.s
>  ql,javax.transaction,javax.transaction.xa,org.apache.commons.logging,
>  org.apache.commons.pool2,org.apache.commons.pool2.impl,javax.transact
>  ion;version="1.1.0",javax.transaction.xa;version="1.1.0";partial=true
>  ;mandatory:=partial
> {code}
> As can be seen, the JTA packages are being imported twice. This is causing a runtime failure in Karaf on startup of this bundle.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)