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

CDI integration: duplicate service / feature / provider beans are registered when Application class has singletons

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.1.9, 3.2.0
    • Integration
    • None
    • Unknown

    Description

      When JAXRS Factory Bean is initialized from the Application class instance which has singletons defined, duplicate beans are being registered, as per WARN messages below:

      May 10, 2016 9:53:05 AM org.apache.cxf.jaxrs.model.OperationResourceInfoComparator compare
      WARNING: Both org.apache.sse.StatsRestServiceImpl#stats and org.apache.sse.StatsRestServiceImpl#stats are equal candidates for handling the current request which can lead to unpredictable results
      May 10, 2016 9:53:17 AM org.apache.cxf.jaxrs.model.OperationResourceInfoComparator compare
      WARNING: Both org.apache.sse.StatsRestServiceImpl#stats and org.apache.sse.StatsRestServiceImpl#stats are equal candidates for handling the current request which can lead to unpredictable results
      

      Attachments

        Activity

          People

            reta Andriy Redko
            reta Andriy Redko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: