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

Inconsistent versions of jax-rs specs can lead to OSGi pain

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.1.6, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      CXF's dependency tree calls for:

       <dependency>
                      <groupId>javax.ws.rs</groupId>
                      <artifactId>javax.ws.rs-api</artifactId>	
                      <version>2.0.1</version>	
                   </dependency>
      

      However, the Karaf features asks for a servicemix bundle that only provides version 2.0 of the spec, and indeed, there's no SM bundle for 2.0.1. So, an OSGi bundle built with CXF will be prone to try to import 2.0.1 of the package in this jar, and then fail to be able to wire it.

      If CXF really needs 2.0.1, then we need an SM bundle for 2.0.1 (and the CXF feature should reference it).

      I'll link the SM jira.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                bmargulies Benson Margulies
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: