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 9039D7B4E for ; Wed, 31 Aug 2011 05:21:52 +0000 (UTC) Received: (qmail 25769 invoked by uid 500); 31 Aug 2011 05:21:52 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 25654 invoked by uid 500); 31 Aug 2011 05:21:39 -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 25644 invoked by uid 99); 31 Aug 2011 05:21:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 05:21:36 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Wed, 31 Aug 2011 05:21:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D1B7D42622 for ; Wed, 31 Aug 2011 05:21:09 +0000 (UTC) Date: Wed, 31 Aug 2011 05:21:09 +0000 (UTC) From: "Rajesh Kumar (JIRA)" To: issues@cxf.apache.org Message-ID: <1327329874.1459.1314768069855.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <706173804.6263.1314686438084.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-3776) Duplicate policy getting added with java-first approach MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094311#comment-13094311 ] Rajesh Kumar commented on CXF-3776: ----------------------------------- That was my mistake. Wsdl that you saw was generated (as expected with single instance of policy) when I didn't use implementorClass attribute in jaxws:endpoint configuration. I have uploaded the one with duplicate policy today (HelloWorld_generated_wsdl_with_duplicate_policy.xml), this happens when I use implementorClass attribute. > Duplicate policy getting added with java-first approach > ------------------------------------------------------- > > Key: CXF-3776 > URL: https://issues.apache.org/jira/browse/CXF-3776 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.4.2 > Environment: Local build > Reporter: Rajesh Kumar > Assignee: Daniel Kulp > Fix For: 2.4.3 > > Attachments: HelloWorld_generated_wsdl_with_duplicate_policy.xml, duplicate_policy_Issue.zip > > Original Estimate: 24h > Remaining Estimate: 24h > > I am trying the latest CXF release 2.4.2 for adding policy using java-first approach. The generated wsdl had two occurences of policy. > Since I put the "wsu:id" attribute in wsp:Policy tag, two policies with the same id got added in the generated wsdl. Also tried removing "wsu:id" attribute to avoid the duplicate policy exception, but it failed at some other point with error message "Signature creation failed" (please refer attached stack_trace_without_policy_id.txt). > when I removed "implementorClass" attribute from jaxws:endpoint configuration it was observed that the generated wsdl has only one instance of policy as expected, but the client stub generation for some of my webservices failed when configured without implementorClass. > Please refer the attached artifacts for code/configuration to reproduce the issue. generated wsdl with duplicate policy is also attached. > CXF / WSS artifacts used for the sample webapp are as below: > cxf-2.4.2.jar > cxf-manifest.jar > cxf-xjc-boolean-2.4.0.jar > cxf-xjc-bug671-2.4.0.jar > cxf-xjc-dv-2.4.0.jar > cxf-xjc-ts-2.4.0.jar > wsdl4j-1.6.2.jar > wss4j-1.6.2.jar -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira