Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8859E1935C for ; Tue, 1 Mar 2016 22:35:18 +0000 (UTC) Received: (qmail 26744 invoked by uid 500); 1 Mar 2016 22:35:18 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 26719 invoked by uid 500); 1 Mar 2016 22:35:18 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 26604 invoked by uid 99); 1 Mar 2016 22:35:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 22:35:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 27F5F2C1F64 for ; Tue, 1 Mar 2016 22:35:18 +0000 (UTC) Date: Tue, 1 Mar 2016 22:35:18 +0000 (UTC) From: "Jan Kreutzfeld (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4129) Installing a feature with a fragment that attaches to pax-logging-api fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4129?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1517= 4543#comment-15174543 ]=20 Jan Kreutzfeld commented on KARAF-4129: --------------------------------------- Is there any solution or workaround for this? I'm trying to add a logging a= ppender fragment in my custom distribution, but startup fails with the Ille= galStateException seen above. > Installing a feature with a fragment that attaches to pax-logging-api fai= ls > -------------------------------------------------------------------------= -- > > Key: KARAF-4129 > URL: https://issues.apache.org/jira/browse/KARAF-4129 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.2 > Reporter: Ra=C3=BAl Kripalani > Attachments: ignite-osgi-paxlogging-1.5.0-SNAPSHOT.jar > > > Installing a feature ABC that contains a fragment targeting pax-logging-a= pi fails with the following logs/exception: > {code} > 2015-11-19 16:46:22,402 | INFO | pool-46-thread-1 | FeaturesServiceImpl = | 8 - org.apache.karaf.features.core - 4.0.2 | Installing bund= les: > 2015-11-19 16:46:22,403 | INFO | pool-46-thread-1 | FeaturesServiceImpl = | 8 - org.apache.karaf.features.core - 4.0.2 | mvn:org.apach= e.ignite/ignite-log4j/1.5.0-SNAPSHOT > 2015-11-19 16:46:22,406 | INFO | pool-46-thread-1 | FeaturesServiceImpl = | 8 - org.apache.karaf.features.core - 4.0.2 | mvn:org.apach= e.ignite/ignite-osgi-paxlogging/1.5.0-SNAPSHOT > 2015-11-19 16:46:22,408 | INFO | pool-46-thread-1 | FeaturesServiceImpl = | 8 - org.apache.karaf.features.core - 4.0.2 | null > 2015-11-19 16:46:22,410 | ERROR | nsole user karaf | ShellUtil = | 43 - org.apache.karaf.shell.core - 4.0.2 | Exception caught = while executing command > java.lang.IllegalStateException: Resource has no uri > =09at org.apache.karaf.features.internal.service.Deployer.getBundleInputS= tream(Deployer.java:1372)[8:org.apache.karaf.features.core:4.0.2] > =09at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer= .java:718)[8:org.apache.karaf.features.core:4.0.2] > =09at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doPr= ovision(FeaturesServiceImpl.java:1079)[8:org.apache.karaf.features.core:4.0= .2] > =09at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.ca= ll(FeaturesServiceImpl.java:975)[8:org.apache.karaf.features.core:4.0.2] > =09at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79] > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1145)[:1.7.0_79] > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:615)[:1.7.0_79] > =09at java.lang.Thread.run(Thread.java:745)[:1.7.0_79] > {code} > Looking at source, it seems that pax-logging-api doesn't have a capabilit= y of type {{osgi.content}} as expected by {{ResourceUtils#getUri}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)