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

Applications classloader should be set during method invocations.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2
    • None
    • None
    • Moderate

    Description

      Invocation of a JAX-RS method may depend on some application classes which may not be loaded already, they will be loaded during invocation. But during invocation the classloader will be CXF war application classloader, this will lead to NoClassDefFoundErrors. To avoid this root resource class' classloader should be set on the current thread.
      Similar fix should be applied to provider methods such as readFrom, writeTo etc.

      Attachments

        1. cl_test.war
          2 kB
          Chaitanya Choleti
        2. sources.zip
          2 kB
          Chaitanya Choleti
        3. new_cl_test.war
          4 kB
          Chaitanya Choleti
        4. new_sources.zip
          3 kB
          Chaitanya Choleti

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            chaitanyak Chaitanya Choleti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: