Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40177200B65 for ; Tue, 2 Aug 2016 18:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3EC16160AAC; Tue, 2 Aug 2016 16:59:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC1A4160A76 for ; Tue, 2 Aug 2016 18:59:21 +0200 (CEST) Received: (qmail 62986 invoked by uid 500); 2 Aug 2016 16:59:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 62955 invoked by uid 99); 2 Aug 2016 16:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2016 16:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9AB0F2C0D69 for ; Tue, 2 Aug 2016 16:59:20 +0000 (UTC) Date: Tue, 2 Aug 2016 16:59:20 +0000 (UTC) From: "Matt Sicker (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DBCP-465) OSGi import-package has repeated packages causing a runtime failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 Aug 2016 16:59:22 -0000 [ 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)