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

Vladimir Konkov edited comment on DBCP-454 at 10/10/18 12:19 PM:
-----------------------------------------------------------------

Temporal workaround for Karaf with Pax Wrap protocol:

 

wrap:mvn:org.apache.commons/commons-dbcp2/2.5.0$overwrite=merge{color:#6d9cbe}&{color}Import-Package=javax.transaction;version="1.1.0",javax.transaction.xa;version="1.1.0",javax.management,javax.naming,javax.naming.spi,javax.sql,org.apache.commons.logging,org.apache.commons.pool2,org.apache.commons.pool2.impl


was (Author: vladimirfx):
Temporal workaround for Karaf with Pax Wrap protocol:

 

{{wrap:mvn:org.apache.commons/commons-dbcp2/2.5.0$overwrite=merge{color:#6d9cbe}&{color}Import-Package=javax.transaction.xa;version="1.1.0"}}

> OSGi declarations contain multiple import headers for javax.transaction
> -----------------------------------------------------------------------
>
>                 Key: DBCP-454
>                 URL: https://issues.apache.org/jira/browse/DBCP-454
>             Project: Commons DBCP
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>         Environment: OSGi
>            Reporter: Philipp Marx
>            Assignee: Matt Sicker
>            Priority: Blocker
>             Fix For: 2.4.1
>
>         Attachments: patch
>
>
> In DBCP-445 an issue for "javax.transaction" import-packages was addressed. 
> Though with the fix for this issue the import-packages will contain 
> "javax.transaction" twice:
> 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.xa;version="1.1.0";partial=true;mandatory:=partial,javax.transact
>  ion;version="1.1.0"
> Thus the bundle can't be loaded as duplicate import declarations are 
> prohibited and i.e. Felix will complain about this and refuse to install the 
> bundle. The fix is quite simple by appending the '*' to the end (see attached 
> patch).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to