CXF
  1. CXF
  2. CXF-3668

Duplicate Poclies added in Java-First approach

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.2
    • Component/s: WS-* Components
    • Labels:
      None
    • Environment:

      Tomact 6.0.1.4, JDK 1.6_21

      Description

      Polices added to the generated multiple times in the WSDL which causes the service to throw error when invoked by a client.When I removed all the other end points from the system, the number of duplicate polices reduced to half.

      On debugging found that there are two instances of PolicyAnnotationListener in the FactoryBeanListenerManager. Is this causing the event to be handled multiple times and thus duplication of the policy?

      The first instance is added during the setBus method on the FactoryBeanListenerManager. The method looks for a bean of type FactoryBeanListener and an instance of the PolicyAnnotationListener is found. The next instance is added in the PolicyEngineImpl's setBus method, where new instance of PolicyAnnotationListener is created and added to the FactoryBeanListenerManager.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Daniel Kulp
              Reporter:
              Rahul Bindu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development