[ 
https://issues.apache.org/jira/browse/CXF-5544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960409#comment-13960409
 ] 

Rebecca Searls commented on CXF-5544:
-------------------------------------

It appears wsrm 1.1 is not supported in CXF.  The cause of the error msg,
"Unmarshalling Error: cvc-elt.1: Cannot find the declaration of element 
'CreateSequence'. "
is because no grammar is found for it in the "fGrammerPool" in 
org.apache.xerces.impl.xs.XMLSchemaLoader
Grammars for http://schemas.xmlsoap.org/ws/2004/08/addressing and 
http://schemas.xmlsoap.org/ws/2005/02/rm are provided in  
org.apache.cxf.ws.rm.RMEndpoint
lines 325 - 333. 


> problem using @SchemaValidation in combination with wsrm 1.1
> ------------------------------------------------------------
>
>                 Key: CXF-5544
>                 URL: https://issues.apache.org/jira/browse/CXF-5544
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.6.8
>         Environment: Jboss EAP 6.1.1
>            Reporter: Erik Huisman
>
> Hi,
> We are using cxf 2.6.8 for our webservices.
> We will use the Web Services Reliable Messaging Policy Assertion.
> Reliable Messaging is configured by consuming a WSDL contract that specifies 
> proper WS-Reliable Messaging policies as follows:
>       <wsdl:binding name="iscpt_v1_3_SOAP" type="tns:iscpt_v1_3">
>       <wswa:UsingAddressing wsdl:required="true" 
> xmlns:wswa="http://www.w3.org/2006/05/addressing/wsdl"/>
>               <wsp:Policy wsu:Id="RM" 
> xmlns:wsp="http://www.w3.org/ns/ws-policy";
>                       
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
>                       <wsam:Addressing 
> xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata";>
>                               <wsp:Policy />
>                       </wsam:Addressing>
>                       <wsrmp:RMAssertion 
> xmlns:wsrmp="http://schemas.xmlsoap.org/ws/2005/02/rm/policy";>
>                               <wsrmp:BaseRetransmissionInterval
>                                       Milliseconds="4000" />
>                               <wsrmp:AcknowledgementInterval
>                                       Milliseconds="2000" />
>                       </wsrmp:RMAssertion>
>               </wsp:Policy>
>               
> The webservice operates correct 
> - without Schemavalidation and wsrm 1.1
> - with Schemavalidation in combination with a wsrm 1.0 client. 
> But when using the @Schemavalidation in combination with a wsrm 1.1 client 
> the server is validating the CreateSequence messages.
> This will end with the folowing exception at the server:
> WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/0.0.0.0:8080-10) 
> Interceptor for 
> {http://docs.oasis-open.org/ws-rx/wsrm/200702}SequenceAbstractService#{http://docs.oasis-open.org/ws-rx/wsrm/200702}CreateSequence
>  has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: 
> Unmarshalling Error: cvc-elt.1: Cannot find the declaration of element 
> 'CreateSequence'. 
>       at 
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:808)
>  [cxf-rt-databinding-jaxb-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:629)
>  [cxf-rt-databinding-jaxb-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157) 
> [cxf-rt-databinding-jaxb-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:194)
>  [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>  [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>  [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)
>  [cxf-rt-transports-http-2.6.8.redhat-7.jar:2.6.8.redhat-7]
>       at 
> org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:97)
>       at 
> org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)
>       at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
>       
> Best regards,
> Erik



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to