Hi Steinar, org.osgi.core is the spec, so it's "embedded" and provided by the framework (felix or equinox).
In your code, you don't want to depend from the framework, but only from the spec. So, you can have org.osgi.core dependency in your test (scope provided) in you use for instance BundleContext. In Karaf, we embed the spec because it's used internally before starting the framework (remember that Karaf is able to "abstract" the framework). To be honest, I don't understand your issue: itest just works fine in Karaf (in my box, in Jenkins). So, in order for you to move forward, I'm proposing my help to fix your issue (at least trying to reproduce). Please contact me directly, we will work together on your issue. Regards JB On 23/06/2019 16:17, Steinar Bang wrote: > I'm trying to figure out why my pax exam tests are failing on > openjdk-11, and am trying to trace the difference between regular karaf > startup on openjdk-11 (karaf starts and runs fine on openjdk-11) and pax > exam karaf startup on openjdk-11 (which fails for me). > > I was trying to figure out what framework is used to boot karaf, and > couldn't see anything in karaf.log. > > So I looked in the boot directory of karaf, but that only contains > org.osgi.core-6.0.0.jar. > > What's the relationship between org.osgi.core-6.0.0.jar and the felix > and/or equinox framework? > > Is org.osgi.core-6.0.0.jar a version of the felix framework? > > Or does org.osgi.core-6.0.0.jar only contain interfaces used by all OSGi > 6 frameworks? (but if so: where does karaf find the framework it should > use to boot) > > Could the pax exam fix be to exclude the equinox and felix frameworks > pulled into the classpath by transitive dependencies on the karaf JDBC > feature? > > And/or should I add org.osgi.core-6.0.0.jar as a dependency to the pax > exam test, to pull it into the classpath? > > Thanks! > > > - Steinar > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
