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/07/20 19:05:11 UTC

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

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


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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-2994:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>         Attachments: TrackLiteDataHandlerWSServiceMessageReceiverInOut.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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516646 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2994:
-----------------------------------------------------

yes you can give a wsdl file. 
the only thing you have to do is to generate the code using scomp and replace the axis2 axis2 generated java files (for databinding) and resouce folder.
then generate the aar file as earlier.

> 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: 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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2994:
------------------------------------

    Fix Version/s: 1.3

> 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: TrackLiteDataHandlerWSServiceMessageReceiverInOut.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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514250 ] 

Steve Kruse commented on AXIS2-2994:
------------------------------------

I know with axis2 1.2, there was an issue with the way my schema's had imported the same schema another schema did and xmlbeans was failing to create the beans because it was complaining about duplicate definitions.  This was fixed I think around the June 27th, and then I could actually build everything and create a service.  I'm not sure if it's related to that issue but I thought that may be of some help.

> 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
>
> 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: TrackLiteDataHandlerWSServiceStub.java
                TrackLiteDataHandlerWSServiceSkeleton.java

Here are the skeleton and stub files...

> 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: 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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516423 ] 

Davanum Srinivas commented on AXIS2-2994:
-----------------------------------------

Please fix the problems mentioned by Anne here and try with latest nightly
http://www.mail-archive.com/axis-user@ws.apache.org/msg31452.html

Please reopen if necessary.

thanks,
dims

> 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: 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515963 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2994:
-----------------------------------------------------

can you attach your stub and skelton as well?

> 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: TrackLiteDataHandlerWSServiceMessageReceiverInOut.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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516327 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2994:
-----------------------------------------------------

Can you get an XmlBeans relese and compile this scheam with the scmp command given. Then
replace the jars or classes generated from the scmp with the Axis2 generated code. 
So that you can use directly xmlbeans generated code.

I tried to generate the code.but getting an error in codegeneration time.

> 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: 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: TrackLiteDataHandlerWSServiceMessageReceiverInOut.java

This is the actual file where the stack track is pointing to ...

> 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
>         Attachments: TrackLiteDataHandlerWSServiceMessageReceiverInOut.java
>
>
> 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516614 ] 

Steve Kruse commented on AXIS2-2994:
------------------------------------

Amila,

I have tried the changes that Ann had suggested and could not get the
code to generate.  I'm not real sure how to use xmlbeans straight out of
the box.  I've actually generated code from the using scomp against the
xsd and everything seemed to work fine.  Can I use scomp against the
wsdl file? 

Steve



> 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: 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517406 ] 

Steve Kruse commented on AXIS2-2994:
------------------------------------

Amila,

I made the fixes that Ann had suggested and seemed to get further.  I
can now run the wsdl thru scomp and have no errors and it seems to
generate everything.  I am still having an issue with a class cast
exception but it is now a different one.  Here is the stack trace...

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Server</faultcode>
 
<faultstring>peoiws5.mdiapps.soap.data.impl.InformationObjectEventBeanIm
pl cannot be cast to
peoiws5.mdiapps.soap.lite.trackinfo.TrackInfoEventLite</faultstring>
      <detail>
        <Exception>
          org.apache.axis2.AxisFault:
peoiws5.mdiapps.soap.data.impl.InformationObjectEventBeanImpl cannot be
cast to peoiws5.mdiapps.soap.lite.trackinfo.TrackInfoEventLite&#xd;
          at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)&#xd;
          at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOu
t.invokeBusinessLogic(TrackLiteDataHandlerWSServiceMessageReceiverInOut.
java:101)&#xd;
          at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusine
ssLogic(AbstractInOutSyncMessageReceiver.java:42)&#xd;
          at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa
geReceiver.java:96)&#xd;
          at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)&#xd;
          at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:275)&#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(Applica
tionFilterChain.java:269)&#xd;
          at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)&#xd;
          at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)&#xd;
          at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.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:1
51)&#xd;
          at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)&#xd;
          at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)&#xd;
          at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)&#xd;
          at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.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:
peoiws5.mdiapps.soap.data.impl.InformationObjectEventBeanImpl cannot be
cast to peoiws5.mdiapps.soap.lite.trackinfo.TrackInfoEventLite&#xd;
          at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceSkeleton.handleTrac
kInfoLiteEvent(TrackLiteDataHandlerWSServiceSkeleton.java:37)&#xd;
          at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOu
t.invokeBusinessLogic(TrackLiteDataHandlerWSServiceMessageReceiverInOut.
java:48)&#xd;
          ... 21 more&#xd;
        </Exception>
      </detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>



> 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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-2994:
-------------------------------------

    Priority: Blocker  (was: Major)

Amila we need to fix this for 1.3

Thanks
Deepal

> 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
>         Attachments: TrackLiteDataHandlerWSServiceMessageReceiverInOut.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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2994.
-------------------------------------

    Resolution: Fixed

> 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: 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


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

Posted by "Steve Kruse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: wsdl_schema.zip

This is the wsdl and schema files....

> 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
>         Attachments: TrackLiteDataHandlerWSServiceMessageReceiverInOut.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