You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Rajesh Kumar (JIRA)" <ji...@apache.org> on 2011/08/30 08:40:38 UTC
[jira] [Created] (CXF-3776) Duplicate policy getting added with
java-first approach
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
Environment: Local build
Reporter: Rajesh Kumar
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
[jira] [Commented] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Rajesh Kumar (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3776.
------------------------------
Resolution: Fixed
> 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
[jira] [Updated] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Rajesh Kumar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Kumar updated CXF-3776:
------------------------------
Component/s: WS-* Components
Affects Version/s: 2.4.2
Fix Version/s: 2.4.3
> 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
> Fix For: 2.4.3
>
> Attachments: 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
[jira] [Updated] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Rajesh Kumar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Kumar updated CXF-3776:
------------------------------
Attachment: duplicate_policy_Issue.zip
> 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
> Environment: Local build
> Reporter: Rajesh Kumar
> Attachments: 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
[jira] [Closed] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Rajesh Kumar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Kumar closed CXF-3776.
-----------------------------
I have verified the fix using 2.4.3 snapshot build.
Thanks a lot!!!
> 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
[jira] [Updated] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Rajesh Kumar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Kumar updated CXF-3776:
------------------------------
Attachment: HelloWorld_generated_wsdl_with_duplicate_policy.xml
> 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
[jira] [Commented] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093931#comment-13093931 ]
Daniel Kulp commented on CXF-3776:
----------------------------------
I just checked the generated_wsdl_with_duplicate_policy_HelloWorld.xml file in the zip and there is only a single occurrence of the policy in there. I'm a bit confused what the issue is.
> 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: 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
[jira] [Assigned] (CXF-3776) Duplicate policy getting added with
java-first approach
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-3776:
--------------------------------
Assignee: Daniel Kulp
> 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: 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