Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4704

Class loading problem using CXFNonSpringJaxrsServlet in OSGi environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.2
    • 2.6.5, 2.7.2
    • JAX-RS
    • None
    • Apache Felix

    • Unknown

    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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            jasius9 Valdas Jasaitis
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: