First, you can also embed Johnzon as private package in your bundle, that's probably the easiest way.
All is not necessary bundle and import in OSGi ! I don't understand why the users systematically wants bundles/imports for everything ;) Anyway, can you share exactly the message ? The missing is not a bundle, it's a capability (service.loader). It's something you can add in a feature for instance. What I propose to you is to create a features for that. Regards JB On 15/09/2019 12:20, Markus Rathgeb wrote: > Hi, > > I posted my problem already to the Johnzon mailing list and have been > told to ask the Karaf team. So please let me ask you (this should be > no cross posting). > See: > https://lists.apache.org/thread.html/b2134d2002738d33a57a329966ef38563372613502947158358092fa@%3Cdev.johnzon.apache.org%3E > > I am not really sure if Karaf is using Johnzon. The current master > source tree only finds the usage of johnzon-core and johnzon-mapper on > an camel demo / example and it uses a rather old version (0.95). > But as you "know" a lot of OSGi bundles you perhaps know which one > satisfy the respective requirements. > > Let me repeat the description of my problem: > > I would like to use johnzon-jsonb 1.1.12 in an OSGi container. > > After adding johnzon-jsonb I got: > osgi.wiring.package: (&(osgi.wiring.package=javax.json.bind)) > > That's easy, we need the respective API bundle. > I added org.apache.geronimo.specs/geronimo-jsonb_1.0_spec/1.1 > > johnzon-jsonb requires: osgi.contract: > (&(osgi.contract=JavaCDI)(version=2.0.0)) > I added org.apache.geronimo.specs/geronimo-jcdi_2.0_spec/1.1 > This bundle provides the JavaCDI contract version 2.0.0 > > The jcdi bundle requires: osgi.wiring.package: > (&(osgi.wiring.package=javax.el)) > I added org.apache.geronimo.specs/geronimo-el_2.2_spec/1.1 > > The jcdi also requires: osgi.wiring.package: > (&(osgi.wiring.package=javax.inject)) > I added org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.1 > > The jcdi also requires: osgi.serviceloader: > (osgi.serviceloader=javax.enterprise.inject.se.SeContainerInitializer) > > I don't know which bundle provides that service loader. > > Can you please point me to a set of bundles to use Johnzon JSON-B in OSGi? > > With regards, > Markus > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
