Bug 780931 (SOA-3398) - Quickstart bpel_esb_helloworld_saml not runnable with CXF
Summary: Quickstart bpel_esb_helloworld_saml not runnable with CXF
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3398
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossWS
Version: 5.2.0.ER4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.2.0 GA,5.2.0.ER5
Assignee: Gary Brown
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-21 08:35 UTC by Filip Nguyen
Modified: 2011-10-21 08:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 08:56:43 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 780834 0 high CLOSED Cannot deploy and run quickstart bpel_esb_helloworld_saml 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-3398 0 None None None Never

Internal Links: 780834

Description Filip Nguyen 2011-09-21 08:35:02 UTC
project_key: SOA

Fix SOA-3285 introduced another bug - the quickstart is not runnable with CXF. Problem upon running the QS: 

{code:title=Exception|borderStyle=solid}
10:24:22,667 ERROR [org.jboss.soa.bpel.runtime.ws.WebServiceClient] WS invocation failed
org.apache.cxf.wsdl11.WSDLRuntimeException: Part Security defined as element {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security which is not in the schema.
{code} 


CXF requires the schema to locate the Types. In my opinion best solution is to define wsse:Security element type directly in the WSDLs (./bpelContent/HelloWorld.wsdl, ./bpelContent/HelloWorldProxy.wsdl, ./bpelContent/HelloWorldWS.wsdl) to avoid SOA-3285+this issue.

Comment 1 Filip Nguyen 2011-09-21 08:35:30 UTC
Link: Added: This issue relates to SOA-3285


Comment 2 Filip Nguyen 2011-09-21 12:31:48 UTC
It seems that there is a common solution to all of this. Using include instead of import seems to work for both Native and CXF stacks: 

{code:title=WSDL|borderStyle=solid}
...
 <types>
  ...
    <xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://www.w3.org/2001/XMLSchema">
     <xsd:include  schemaLocation="oasis-200401-wss-wssecurity-secext-1.0.xsd" />     
   </xsd:schema>
 </types>
...
{code}

Comment 3 Anne-Louise Tangring 2011-09-27 18:30:33 UTC
Candidate for 5.2

Comment 4 Gary Brown 2011-09-29 09:28:16 UTC
Thanks for the solution Filip.

Comment 5 David Le Sage 2011-09-29 23:01:53 UTC
Release Notes Docs Status: Added: Not Required
Writer: Added: dlesage


Comment 6 Filip Nguyen 2011-10-21 08:56:43 UTC
Verified in ER5.


Note You need to log in before you can comment on or make changes to this bug.