>>>>> Steinar Bang <[email protected]>:

> And the error message sounds similar to what one gets when using
> Class.forName() in OSGi when the class is outside of the current
> bundle. So maybe I'm running OSGi-incompatible reflection code?

> HK2 as a bundle named something like OSGi locator. And that one doesn't
> seem to be loaded. Instead, this one is loaded:
>  96 | Active   |  80 | 2.5.0          | ServiceLocator Default Implementation

Correction: both the default locator and the osgi locator are loaded:
 96 | Active   |  80 | 2.5.0          | ServiceLocator Default Implementation
 97 | Active   |  80 | 1.0.1          | OSGi resource locator bundle - used by 
various API providers that rely on META-INF/services mechanism to locate 
providers.

Note: Version of 1.0.1 of the OSGi resource locator is what the maven
dependencies of jersey 2.28 has as the version for the OSGi resource
locator.

The rest of the HK2 dependencies of the HK2 used in jersey 2.28 are
2.5.0

Reply via email to