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

SpringResourceFactory does not work with constructor-autowired beans

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.1.5, 3.2.0
    • Component/s: JAX-RS
    • Labels:
    • Estimated Complexity:
      Moderate

      Description

      When used with constructor-autowired bean, it fails with "Resource class ... has no valid constructor" exception. We don't need constructor at all when we already have a singleton instance from Spring.

      Also it looks like isSingleton() is called for the first time before correct value is calculated a few lines below: isSingleton = ac.isSingleton(beanId)

        Attachments

        1. CXF-6694.patch
          3 kB
          Vladimir Kulev

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              lightoze Vladimir Kulev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: