Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AF5E6541 for ; Tue, 19 Jul 2011 04:06:36 +0000 (UTC) Received: (qmail 93552 invoked by uid 500); 19 Jul 2011 04:06:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 92861 invoked by uid 500); 19 Jul 2011 04:06:26 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 92805 invoked by uid 99); 19 Jul 2011 04:06:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 04:06:20 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 04:06:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 14B2342C95 for ; Tue, 19 Jul 2011 04:05:58 +0000 (UTC) Date: Tue, 19 Jul 2011 04:05:58 +0000 (UTC) From: "Rahul Bindu (JIRA)" To: issues@cxf.apache.org Message-ID: <447518622.2784.1311048358081.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-3668) Duplicate Poclies added in Java-First approach MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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