Bug 1150934 - [GSS] (6.3.x) Regression: Unmarshalling error is thrown when a JAX-WS handler is configured
Summary: [GSS] (6.3.x) Regression: Unmarshalling error is thrown when a JAX-WS handler...
Keywords:
Status: CLOSED DUPLICATE of bug 1135578
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Services
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Alessio Soldano
QA Contact: Rostislav Svoboda
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-09 08:36 UTC by Tadayoshi Sato
Modified: 2018-12-09 18:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of: 1150931
Environment:
Last Closed: 2014-10-10 01:09:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA CXF-5753 0 None None None Never

Description Tadayoshi Sato 2014-10-09 08:36:14 UTC
+++ This bug was initially created as a clone of Bug #1150931 +++

Description of problem:
Platform BZ for https://issues.apache.org/jira/browse/CXF-5753

Since EAP 6.2.2, when a JAX-WS handler is configured on a WS endpoint even though it's an empty handler, SOAP requests like the following one start to face "Unmarshalling Error".

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <hello xmlns="http://ws.samples.redhat.com/">
         <name xmlns="">SoapUI</name>
      </hello>
   </soapenv:Body>
</soapenv:Envelope>

Note how the default xml namespace is declared for both <hello> and <name>. However the soap request above might be invalid with regard to SOAP spec, until EAP 6.2.1 the same SOAP request worked so it should be a regression bug.

The same issue was reported and already fixed at https://issues.apache.org/jira/browse/CXF-5753. I confirmed that in fact the issue is resolved since CXF 2.7.12, so simply upgrading CXF to latest 2.7.x would fix the issue as well on EAP.


Version-Release number of selected component (if applicable):
Apache CXF 2.7.10


How reproducible:
100%


Steps to Reproduce:
1. Deploy the attached reproducer to EAP.
2. Send the above SOAP message to the endpoint using SoapUI.

Actual results:
Got the following error.

WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/127.0.0.1:8080-1) Interceptor for {http://ws.samples.redhat.com/}GreetingServiceService#{http://ws.samples.redhat.com/}hello has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://ws.samples.redhat.com/", local:"name"). Expected elements are <{}name> 
...
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://ws.samples.redhat.com/", local:"name"). Expected elements are <{}name>


Expected results:
Response should be returned successfully.

Comment 1 Tadayoshi Sato 2014-10-10 01:09:52 UTC

*** This bug has been marked as a duplicate of bug 1135578 ***


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