[ 
https://issues.apache.org/jira/browse/ARIES-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bas updated ARIES-1328:
-----------------------
    Attachment: require-capability-service.patch

I added a patch (require-capability-service.patch) that contains a test case to 
test the behavior with require-capability and provide-capability and it is 
failing. Maybe the test case is wrong, can someone check it?

The test case has a feature with a bundle 1 and an embedded application with a 
bundle 2.
Bundle 1 provides a service capability
Bundle 2 requires a service capability

I would expect all to be installed correctly but the install fails because of 
the require-capability for the service not resolving.

missing requirement 
org.apache.aries.subsystem.core.archive.RequireCapabilityRequirement: 
namespace=osgi.service, attributes={}, 
directives={filter=(objectClass=com.emagiz.osgi.environment.PropertiesSource), 
effective=active, resolution=mandatory}

> 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: David Bosschaert
>         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, 
> require-capability-service.patch, 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)

Reply via email to