All,

I need to add a dynamic import to a CXF bundle. W/o the dynamic I get this:

curl -H "Accept:application/json" http://localhost:8181/services/SomeService/
{"company":[JAXBException occurred : com.sun.xml.bind.v2.ContextFactory not 
found by org.apache.cxf.cxf-rt-transports-http [128]. 
com.sun.xml.bind.v2.ContextFactory not found by 
org.apache.cxf.cxf-rt-transports-http [128].

Then from Karaf Console:

        karaf@root()> bundle:dynamic-import 128

And everyone is happy.

How do I include this in a custom distro though? There is obviously no 
guarantee that this bundle always has the same BID.

I also looked through the script commands but I don't see anything.

Am I approaching this correctly?

Any suggestion is greatly appreciated.


Kind Regards,

Erwin

Reply via email to