Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE387178E2 for ; Fri, 25 Sep 2015 17:23:04 +0000 (UTC) Received: (qmail 13462 invoked by uid 500); 25 Sep 2015 17:23:04 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 13426 invoked by uid 500); 25 Sep 2015 17:23:04 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 13412 invoked by uid 99); 25 Sep 2015 17:23:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 17:23:04 +0000 Date: Fri, 25 Sep 2015 17:23:04 +0000 (UTC) From: "John Ross (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (ARIES-1328) Application subsystem does not import services MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Ross reopened ARIES-1328: ------------------------------ Assignee: John Ross (was: David Bosschaert) b. Require-Capability osgi.service on bundles inside the application .esa is not resolved with effective:=active but seems to be resolved with effective:=resolve. There is an issue in the implementation where only the services, but not the service capabilities, are made visible to bundles from outside the region. This is not an issue when effective is "active" (or anything other "resolve"), but only when effective:=resolve. I believe this is what you were referring to in b above, so I'm going to use this bug for the fix. > Application subsystem does not import services > ---------------------------------------------- > > Key: ARIES-1328 > URL: https://issues.apache.org/jira/browse/ARIES-1328 > Project: Aries > Issue Type: Bug > Components: Subsystem > Affects Versions: subsystem-core-1.2.0 > Reporter: David Bosschaert > Assignee: John Ross > Attachments: api-bundle-1.0.0-SNAPSHOT.jar, application-subsystem-nosvc-1.0.0-SNAPSHOT.esa, application-subsystem-nosvc-rc.esa, application-subsystem-nosvc-ubrc.esa, svc-bundle2-1.0.0-SNAPSHOT.jar, use-bundle-1.0.0-SNAPSHOT.jar > > > I have an application Subsystem that has a bundle that looks for a service via a service tracker. > This service and its API is provided by pre-existing bundles (api-bundle, svc-bundle2) in the parent subsystem. > The OSGi enterprise R5 spec states in 134.16.1 (Application Subsystems): > "Any required capabilities that are not satisfied by the application's constituents are automatically shared in (imported) from the parent Subsystem." > However when I install and start the application subsystem (application-subsystem-nosvc), it does not find the services provided in the parent. > I'm attaching the bundles and subsystem to reproduce. The full source code can be found here: https://github.com/coderthoughts/subsystem-examples -- This message was sent by Atlassian JIRA (v6.3.4#6332)