Hi,
We have an esa with following structure:
--- service-user-subsystem-0.0.1-SNAPSHOT.esa
------ OSGI-INF/SUBSYSTEM.MF
------ service-subsystem-0.0.1-SNAPSHOT.esa
--------- OSGI-INF/SUBSYSTEM.MF
--------- service-0.0.1-SNAPSHOT.jar
------ service-user-0.0.1-SNAPSHOT.jar
The service bundle exports a package (be.aca.service.api), which is
imported by service-user bundle.
The service-user-subsystem esa is fully self-contained (i.e. its zip
file is structured as displayed above).
When we subsystem:install it in Felix, with aries and
subsystem-gogo-shell installed, then we get following error:
g! subsystem:install
file:../../service-user-subsystem/target/service-user-subsystem-0.0.1-SNAPSHOT.esa
Installing subsystem:
file:../../service-user-subsystem/target/service-user-subsystem-0.0.1-SNAPSHOT.esa
gogo: SubsystemException: org.osgi.service.resolver.ResolutionException:
Unable to resolve
/D:/isabel/WORKSP~1/tmp/inputStreamExtract2434004331602758506.zip/service-user-0.0.1-SNAPSHOT.jar:
missing requirement
org.apache.aries.subsystem.core.archive.ImportPackageRequirement:
namespace=osgi.wiring.package, attributes={},
directives={filter=(&(osgi.wiring.package=be.aca.service.api)(&(version>=0.0.0)(!(version>=1.0.0))))},
resource=/D:/isabel/WORKSP~1/tmp/inputStreamExtract2434004331602758506.zip/service-user-0.0.1-SNAPSHOT.jar
What are we missing?
This complete example can be found on
https://github.com/timv2/OSGISubsystemTest/tree/embeddedEsa, with a
simple README.md you can follow to reproduce this.
Thanks for any help!
Jeroen