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

Evaluate jaxrs:schemaLocations after jaxrs:providers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.3, 2.7
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      CXF, Spring

    • Estimated Complexity:
      Unknown

      Description

      If you set the XML catalog to the JAXBElementProvider using the new attribute 'catalogLocation' and setup the jaxrs:schemaLocations in jaxrs:server bean before setting up the jaxrs:providers including the JAXBElementProvider the evaluation of the schemaLocations in org.apache.cxf.jaxrs.utils.schemas.SchemaHandler#createSchema line 81+ will not use the catalogLocation because of it is null.

      Workaround: First, setup the jaxrs:providers, then setup the jaxrs:schemaLocations. So the order of the elements is important.

      Proposal: Evaluate the providers element before evaluating the schemaLocations element.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              marko voss Marko Voss
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: