The code below runs in Karaf. Is there any chance of a caller getting:

<html><body>No service was found.</body></html>

after this has executed?


    bus = BusFactory.newInstance().createBus();
        // set the class loader so that the TCCL is reliably 'us' when
we get called.
        
bus.setExtension(bundleContext.getBundle().adapt(BundleWiring.class).getClassLoader(),
ClassLoader.class);
        JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
        sf.setBus(bus);
        sf.setServiceBean(this);
        sf.setAddress("/worker");
        server = sf.create();

Reply via email to