Translated message

A translation of this page exists in English.

org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element

Solution In Progress - Updated -

Issue

  • サービスはすべて JAX-WS サービスとして実装されています。
  • 問題は、 エンティティーサービスに追加の要素が必要になる場合があることです。 現在エンティティーサービスを使用している複合 Web サービスに影響を与えることなく、エンティティー Web サービスにその追加の要素を追加できるようにしたいと考えています。
  • server.log に次の WARNING メッセージが表示されました。

    2026-01-28 17:09:53,183 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (default task-1) Interceptor for {http://soap.example.gss.redhat.com/}EchoWebServiceService#{http://soap.example.gss.redhat.com/}echo has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"detail"). Expected elements are <{}return>
        at org.apache.cxf.impl//org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:931)
        at org.apache.cxf.impl//org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:737)
        at org.apache.cxf.impl//org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:168)
        at org.apache.cxf.impl//org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109)
        at org.apache.cxf@4.0.5.redhat-00001//org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
        at org.apache.cxf@4.0.5.redhat-00001//org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:921)
        ...
    Caused by: jakarta.xml.bind.UnmarshalException: unexpected element (uri:"", local:"detail"). Expected elements are <{}return>
        ... 158 more
    
  • SOAP クライアント側で XML 検証を無効にするにはどうすればよいですか?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7
    • 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content