Why can’t JAXB find my jaxb.index when running inside Apache Felix?
OK, this took quite some digging, but the answer is not that surprising and not even that complicated: JAXB can’t find jaxb.index, because by default, newInstance(String) uses the current thread’s class loader (as returned by Thread.getContextClassLoader()). This doesn’t work inside Felix, because the OSGi bundles and the framework’s threads have separate class loaders. The solution … Read more