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 8E3FC200C64 for ; Fri, 28 Apr 2017 10:40:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8CB87160BA3; Fri, 28 Apr 2017 08:40:12 +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 D0DFC160B8C for ; Fri, 28 Apr 2017 10:40:11 +0200 (CEST) Received: (qmail 8848 invoked by uid 500); 28 Apr 2017 08:40:11 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 8836 invoked by uid 99); 28 Apr 2017 08:40:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 08:40:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9094BC0370 for ; Fri, 28 Apr 2017 08:40:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ozD_PNdrB-Sz for ; Fri, 28 Apr 2017 08:40:09 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 30E2D60EAA for ; Fri, 28 Apr 2017 08:40:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7F349E0DB1 for ; Fri, 28 Apr 2017 08:40:06 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DEFBD21DF1 for ; Fri, 28 Apr 2017 08:40:04 +0000 (UTC) Date: Fri, 28 Apr 2017 08:40:04 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FELIX-5613) SCR bundle fails to start without Config Admin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Apr 2017 08:40:12 -0000 [ https://issues.apache.org/jira/browse/FELIX-5613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed FELIX-5613. ----------------------------------- > SCR bundle fails to start without Config Admin > ---------------------------------------------- > > Key: FELIX-5613 > URL: https://issues.apache.org/jira/browse/FELIX-5613 > Project: Felix > Issue Type: Bug > Components: Declarative Services (SCR) > Reporter: Neil Bartlett > Assignee: Carsten Ziegeler > Fix For: scr-2.0.10 > > > SCR 2.0.8 still imports package {{org.osgi.service.cm}} as optional, but it does not start when there is no export of that package available. > I know that SCR should be able to work without a Config Admin implementation but it clearly does not work at all without an import of the API package, therefore it should not be marked as an optional import. > Stack trace: > {noformat} > ! Failed to start bundle org.apache.felix.scr-2.0.8, exception activator error org/osgi/service/cm/ConfigurationListener from: java.lang.ClassLoader:defineClass1#-2 > org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.scr [5]. > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2276) > at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) > [... snip ...] > Caused by: java.lang.NoClassDefFoundError: org/osgi/service/cm/ConfigurationListener > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:760) > at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2370) > at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2154) > at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1542) > at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) > at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at org.apache.felix.scr.impl.Activator.doStart(Activator.java:157) > at org.apache.felix.utils.extender.AbstractExtender.start(AbstractExtender.java:114) > at org.apache.felix.scr.impl.Activator.restart(Activator.java:142) > at org.apache.felix.scr.impl.config.ScrConfigurationImpl.configure(ScrConfigurationImpl.java:196) > at org.apache.felix.scr.impl.config.ScrConfigurationImpl.start(ScrConfigurationImpl.java:117) > at org.apache.felix.scr.impl.Activator.start(Activator.java:110) > at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) > ... 11 more > Caused by: java.lang.ClassNotFoundException: org.osgi.service.cm.ConfigurationListener not found by org.apache.felix.scr [5] > at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574) > at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) > at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 27 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)