Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-2452

javax.xml.bind.UnmarshalException when running jaxws-war test

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: nightly
    • Fix Version/s: None
    • Component/s: jaxws
    • Labels:
      None
    • Environment:
      Sun 1.5 SDK + win XP

      Description

      Hi,

      I have a simple jaxws-war test that would display the GreetMeResponse when the jsp client tries to invoke the Greeme method.

      This test has been working for a while but it stopped working when I tried it today. Here's the exception:

      javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException

      • with linked exception:
        [javax.xml.bind.UnmarshalException: unexpected element (uri:"http://apache.org/g
        reeter_control", local:"greetMeResponse"). Expected elements are < {http://apache .org/greeter_control/types}

        faultDetail>,<

        {http://apache.org/greeter_control/type s}

        greetMe>,<

        {http://apache.org/greeter_control/types}

        greetMeOneWay>,<

        {http://apa che.org/greeter_control/types}

        greetMeResponse>,<

        {http://apache.org/greeter_contr ol/types}

        pingMe>,<

        {http://apache.org/greeter_control/types}

        pingMeResponse>,<

        {htt p://apache.org/greeter_control/types}

        sayHi>,<

        {http://apache.org/greeter_control/ types}

        sayHiResponse>]
        at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(Exc
        eptionFactory.java:172)
        Listening for transport dt_socket at address: 8008
        at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(Excep
        tionFactory.java:67)
        at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(Excep
        tionFactory.java:125)
        at org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl.unmarsh
        alByElement(JAXBBlockImpl.java:287)
        at org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl._getBOF
        romReader(JAXBBlockImpl.java:116)
        at org.apache.axis2.jaxws.message.impl.BlockImpl.getBusinessObject(Block
        Impl.java:142)
        at org.apache.axis2.jaxws.message.impl.XMLSpineImpl._getBlockFromOMEleme
        nt(XMLSpineImpl.java:494)
        at org.apache.axis2.jaxws.message.impl.XMLSpineImpl.getBodyBlock(XMLSpin
        eImpl.java:319)
        at org.apache.axis2.jaxws.message.impl.XMLPartBase.getBodyBlock(XMLPartB
        ase.java:505)
        at org.apache.axis2.jaxws.message.impl.MessageImpl.getBodyBlock(MessageI
        mpl.java:471)
        at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshal
        ler.demarshalResponse(DocLitWrappedMethodMarshaller.java:106)
        at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(
        JAXWSProxyHandler.java:356)
        at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod
        (JAXWSProxyHandler.java:274)
        at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSPro
        xyHandler.java:136)
        at $Proxy28.greetMe(Unknown Source)
        at org.apache.jsp.JAXWSClient_jsp._jspService(JAXWSClient_jsp.java:74)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
        .java:384)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
        20)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
        icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
        ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
        alve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
        alve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSu
        bjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.
        invoke(GeronimoStandardContext.java:324)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Gero
        nimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
        ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
        ava:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
        ve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
        543)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
        a:216)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
        :844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
        ss(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
        5)
        at java.lang.Thread.run(Thread.java:595)

      Here's my .wsdl, SEI, SEIC and client jsp file:

      Thanks, Lin

        Attachments

        1. JAXWSClient.jsp
          2 kB
          Lin Sun
        2. greeter_control.wsdl
          7 kB
          Lin Sun
        3. Greeter.java
          3 kB
          Lin Sun
        4. GreeterImpl.java
          4 kB
          Lin Sun

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              linsun Lin Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: