commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Sicker (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBCP-465) OSGi import-package has repeated packages causing a runtime failure
Date Tue, 02 Aug 2016 16:59:20 GMT

    [ 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)

Mime
View raw message