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

SpringResourceFactory does not work with constructor-autowired beans

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.4
    • 3.1.5, 3.2.0
    • JAX-RS
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: