You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Steve Kruse (JIRA)" <ji...@apache.org> on 2007/08/03 01:27:54 UTC

[jira] Updated: (AXIS2-2994) Problem when trying to move service from axis 1.4 to axis 2 1.3RC2

     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Kruse updated AXIS2-2994:
-------------------------------

    Attachment: TrackLiteDataHandlerWS.wsdl

Here is my new wsdl...  Everything else is the same.

> Problem when trying to move service from axis 1.4 to axis 2 1.3RC2
> ------------------------------------------------------------------
>
>                 Key: AXIS2-2994
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2994
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: XP Professional, Tomcat App server 5.5
>            Reporter: Steve Kruse
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: TrackLiteDataHandlerWS.wsdl, TrackLiteDataHandlerWSServiceMessageReceiverInOut.java, TrackLiteDataHandlerWSServiceSkeleton.java, TrackLiteDataHandlerWSServiceStub.java, wsdl_schema.zip
>
>
> I use a wsdl file which works in 1.4 and run it thru wsdl2java in axis2 1.3rc2 and everything builds properly.  The service deploys fine and then when I try to use the service I get the following stack trace from the soap monitor:
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>       <faultstring>org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument</faultstring>
>       <detail>
>         <Exception>
>           org.apache.axis2.AxisFault: org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument&#xd;
>           at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)&#xd;
>           at com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOut.fromOM(TrackLiteDataHandlerWSServiceMessageReceiverInOut.java:322)&#xd;
>           at com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOut.invokeBusinessLogic(TrackLiteDataHandlerWSServiceMessageReceiverInOut.java:42)&#xd;
>           at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)&#xd;
>           at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:95)&#xd;
>           at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)&#xd;
>           at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:276)&#xd;
>           at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:119)&#xd;
>           at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)&#xd;
>           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&#xd;
>           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&#xd;
>           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&#xd;
>           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)&#xd;
>           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)&#xd;
>           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&#xd;
>           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)&#xd;
>           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)&#xd;
>           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)&#xd;
>           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)&#xd;
>           at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)&#xd;
>           at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)&#xd;
>           at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)&#xd;
>           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)&#xd;
>           at java.lang.Thread.run(Thread.java:619)&#xd;
>           Caused by: java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument&#xd;
>           at peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument$Factory.parse(HandleTrackInfoLiteEventDocument.java:128)&#xd;
>           at com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOut.fromOM(TrackLiteDataHandlerWSServiceMessageReceiverInOut.java:220)&#xd;
>           ... 22 more&#xd;
>         </Exception>
>       </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
> The wsdl I am using is below:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:soap.mdiapps.peoiws5"
>     xmlns:apachesoap="http://xml.apache.org/xml-soap"
>     xmlns:impl="urn:soap.mdiapps.peoiws5"
>     xmlns:cvg="urn:data.soap.mdiapps.peoiws5"
>     xmlns:ce="urn:exception.soap.mdiapps.peoiws5"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>     <wsdl:import namespace="urn:trackinfo.lite.soap.mdiapps.peoiws5" location="./xsd/lite/lite-track-info.xsd"/>
>     <wsdl:import namespace="urn:exception.soap.mdiapps.peoiws5" location="./xsd/exception.xsd"/>        
>         
>     <wsdl:types>
>         <xsd:schema
>             elementFormDefault="qualified"
>             targetNamespace="urn:soap.mdiapps.peoiws5"
>             xmlns="http://www.w3.org/2001/XMLSchema">
>             <xsd:element name="handleTrackInfoLiteEvent">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="eventHolder" type="cvg:InfoObjectEventBeanHolder"/>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="handleTrackInfoLiteEventResponse">
>                 <xsd:complexType/>
>             </xsd:element>
>             <xsd:element name="handleTrackInfoLiteEvents">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="eventsHolder" type="cvg:InfoObjectEventBeansHolder" />
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="handleTrackInfoLiteEventsResponse">
>                 <xsd:complexType /> 
>             </xsd:element>
>             <xsd:element name="fault" type="ce:CommunicationException"/>
>             <xsd:element name="fault1" type="ce:ServiceUnavailableException"/>
>         </xsd:schema>
>     </wsdl:types>
>     <wsdl:message name="handleTrackInfoLiteEventsResponse">
>         <wsdl:part element="impl:handleTrackInfoLiteEventsResponse" name="parameters" /> 
>     </wsdl:message>
>     <wsdl:message name="handleTrackInfoLiteEventResponse">
>         <wsdl:part element="impl:handleTrackInfoLiteEventResponse" name="parameters"/>
>     </wsdl:message>
>     <wsdl:message name="handleTrackInfoLiteEventsRequest">
>         <wsdl:part element="impl:handleTrackInfoLiteEvents" name="parameters" /> 
>     </wsdl:message>
>     <wsdl:message name="CommunicationException">
>         <wsdl:part element="impl:fault" name="fault"/>
>     </wsdl:message>
>     <wsdl:message name="handleTrackInfoLiteEventRequest">
>         <wsdl:part element="impl:handleTrackInfoLiteEvent" name="parameters"/>
>     </wsdl:message>
>     <wsdl:message name="ServiceUnavailableException">
>         <wsdl:part element="impl:fault1" name="fault"/>
>     </wsdl:message>
>     <wsdl:portType name="TrackLiteDataHandlerWS">
>         <wsdl:operation name="handleTrackInfoLiteEvent">
>             <wsdl:input message="impl:handleTrackInfoLiteEventRequest" name="handleTrackInfoLiteEventRequest"/>
>             <wsdl:output message="impl:handleTrackInfoLiteEventResponse" name="handleTrackInfoLiteEventResponse"/>
>             <wsdl:fault message="impl:CommunicationException" name="CommunicationException"/>
>             <wsdl:fault message="impl:ServiceUnavailableException" name="ServiceUnavailableException"/>
>         </wsdl:operation>
>         <wsdl:operation name="handleTrackInfoLiteEvents">
>             <wsdl:input message="impl:handleTrackInfoLiteEventsRequest" name="handleTrackInfoLiteEventsRequest" /> 
>             <wsdl:output message="impl:handleTrackInfoLiteEventsResponse" name="handleTrackInfoLiteEventsResponse" /> 
>             <wsdl:fault message="impl:CommunicationException" name="CommunicationException" /> 
>             <wsdl:fault message="impl:ServiceUnavailableException" name="ServiceUnavailableException" /> 
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="TrackLiteDataHandlerWSSoapBinding" type="impl:TrackLiteDataHandlerWS">
>         <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>         <wsdl:operation name="handleTrackInfoLiteEvent">
>             <wsdlsoap:operation soapAction=""/>
>             <wsdl:input name="handleTrackInfoLiteEventRequest">
>                 <wsdlsoap:body use="literal"/>
>             </wsdl:input>
>             <wsdl:output name="handleTrackInfoLiteEventResponse">
>                 <wsdlsoap:body use="literal"/>
>             </wsdl:output>
>             <wsdl:fault name="CommunicationException">
>                 <wsdlsoap:fault name="CommunicationException" use="literal"/>
>             </wsdl:fault>
>             <wsdl:fault name="ServiceUnavailableException">
>                 <wsdlsoap:fault name="ServiceUnavailableException" use="literal"/>
>             </wsdl:fault>
>         </wsdl:operation>
>         <wsdl:operation name="handleTrackInfoLiteEvents">
>             <wsdlsoap:operation soapAction="" /> 
>             <wsdl:input name="handleTrackInfoLiteEventsRequest">
>                 <wsdlsoap:body use="literal" /> 
>             </wsdl:input>
>             <wsdl:output name="handleTrackInfoLiteEventsResponse">
>                 <wsdlsoap:body use="literal" /> 
>             </wsdl:output>
>             <wsdl:fault name="CommunicationException">
>                 <wsdlsoap:fault name="CommunicationException" use="literal" /> 
>             </wsdl:fault>
>             <wsdl:fault name="ServiceUnavailableException">
>                 <wsdlsoap:fault name="ServiceUnavailableException" use="literal" /> 
>             </wsdl:fault>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="TrackLiteDataHandlerWSService">
>         <wsdl:port binding="impl:TrackLiteDataHandlerWSSoapBinding" name="TrackLiteDataHandlerWS">
>             <wsdlsoap:address location="http://127.0.0.1:8080/mdi/services/TrackLiteDataHandlerWS"/>
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org