On Tue, 2018-02-13 at 09:40 -0500, Oleg Cohen wrote:
> Guys,
> 
> Thank you for replying and providing suggestions!
> 
> I do have oak-store-composite in my list
> 
> <bundle>
> mvn:org.apache.jackrabbit/oak-store-
> composite/${org.apache.jackrabbit.oak.version}
> </bundle>
> 
> but I still have an issue with
> org.apache.jackrabbit.oak.spi.mount.MountInfoProvider
> missing when loading oak-core.
> 
> 
> 2018-02-13T09:33:04,620 | ERROR | pool-1-thread-2  |
> BootFeaturesInstaller
>           | 34 - org.apache.karaf.features.core - 4.1.4 | Error
> installing
> boot features
> org.osgi.service.resolver.ResolutionException: Unable to resolve
> root:
> missing requirement [root] osgi.identity;
> osgi.identity=empower.document.library.dev; type=karaf.feature;
> version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]";
> filter:="(&(osgi.identity=empower.document.library.dev)(type=karaf.fe
> ature)(version>=1.0.1.SNAPSHOT)(version<=1.0.1.SNAPSHOT))"
> [caused by: Unable to resolve
> empower.document.library.dev/1.0.1.SNAPSHOT:
> missing requirement [empower.document.library.dev/1.0.1.SNAPSHOT]
> osgi.identity; osgi.identity=empower.oak.tar; type=karaf.feature;
> version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]" [caused by: Unable to
> resolve
> empower.oak.tar/1.0.1.SNAPSHOT: missing requirement
> [empower.oak.tar/1.0.1.SNAPSHOT] osgi.identity;
> osgi.identity=empower.jackrabbit.oak; type=karaf.feature;
> version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]" [caused by: Unable to
> resolve
> empower.jackrabbit.oak/1.0.1.SNAPSHOT: missing requirement
> [empower.jackrabbit.oak/1.0.1.SNAPSHOT] osgi.identity;
> osgi.identity=org.apache.jackrabbit.oak-core; type=osgi.bundle;
> version="[1.8.2,1.8.2]"; resolution:=mandatory [caused by: Unable to
> resolve org.apache.jackrabbit.oak-core/1.8.2: missing requirement
> [org.apache.jackrabbit.oak-core/1.8.2] osgi.service;
> filter:="(objectClass=org.apache.jackrabbit.oak.spi.mount.MountInfoPr
> ovider)";
> effective:=active]]]]

The problem is the same as with the metrics bundle - the
MountInfoProvider is registered by the MountInfoProviderService [2],
but the capability is not added as 'provided' by the bundle.

This happens because we don't use SCR to manage that component. So you
could deploy a fragment bundle and attach it to oak-store-composite and
provide that capability. Alternatively deploy another bundle that just
provides this capability to make the resolver happy.

But at any rate, please file an Oak bug so we don't lose track of it.

Thanks,

Robert

> 
> I tried to load oak-store-composite without oak-core and it didn't
> work
> because oak-store-composite requires oak-core. Do these two need each
> other
> and the way I load these bundles causes the issue. Is there a
> workaround?
> Perhaps I can create my own
> org.apache.jackrabbit.oak.spi.mount.MountInfoProvider
> in a custom bundle?
> 
> Also, I have reported it before. I get another error for a
> missing com.codahale.metrics.MetricRegistry service. Anyone else is
> running
> into the same? Oliver, did it work fine for you in Sling? For the
> time
> being I created my own bundle and added this to Provide-Capability.
> 
> 
[2]: https://github.com/apache/jackrabbit-oak/blob/3068ffc262c938e9d82d
6698ff37a7d8feb7df4b/oak-store-
composite/src/main/java/org/apache/jackrabbit/oak/composite/MountInfoPr
oviderService.java#L94

Reply via email to