Details
Description
The JAX-RS proxy classes are not loaded when I try to use CXFNonSpringJaxrsServlet in Apache Felix. I get ClassNotFoundException.
The problem is that currently CXFNonSpringJaxrsServlet.loadClass always uses the ClassLoadUtils.loadClass which tries the following class loaders:
ThreadContextClassloader,
ClassLoader from CXFNonSpringJaxrsServlet,
Classloader from ClassLoaderUtils.
All of them are not compatible with OSGi. It would be good, to set an explicit classloader for the servlet.