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

JAX-RS resource spring auto-discovery doesn't work in OSGi

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JAX-RS, OSGi
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      It is due to in OSGi container, the spring PathMatchingResourcePatternResolver doesn't know the bundle:// URL so can't scan the package and get the resource.
      If it's in OSGi container and spring-dm (1.2 style) is used, we can set the TCCL as bundle BundleDelegatingClassLoader and use OsgiBundleResourcePatternResolver to scan the package inside a certain bundle.

      Though in OSGi the blueprint configuration is suggested to use and we actually have another issue[1] to add blueprint support for jaxrs auto-discovery, add spring-dm 1.2 support should be good also as people may still use it.

      [1]https://issues.apache.org/jira/browse/CXF-5848

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              ffang Freeman Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: