You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Rahul Bindu (JIRA)" <ji...@apache.org> on 2011/07/19 06:05:58 UTC
[jira] [Created] (CXF-3668) Duplicate Poclies added in Java-First
approach
Duplicate Poclies added in Java-First approach
----------------------------------------------
Key: CXF-3668
URL: https://issues.apache.org/jira/browse/CXF-3668
Project: CXF
Issue Type: Bug
Components: WS-* Components
Affects Versions: 2.4.1
Environment: Tomact 6.0.1.4, JDK 1.6_21
Reporter: Rahul Bindu
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-3668) Duplicate Poclies added in Java-First
approach
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3668.
------------------------------
Resolution: Fixed
Fix Version/s: 2.4.2
Assignee: Daniel Kulp
> Duplicate Poclies added in Java-First approach
> ----------------------------------------------
>
> Key: CXF-3668
> URL: https://issues.apache.org/jira/browse/CXF-3668
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 2.4.1
> Environment: Tomact 6.0.1.4, JDK 1.6_21
> Reporter: Rahul Bindu
> Assignee: Daniel Kulp
> Fix For: 2.4.2
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira