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 "Thilina Gunarathne (JIRA)" <ji...@apache.org> on 2006/09/19 16:06:22 UTC
[jira] Commented: (AXIS2-1187) java.lang.NoSuchMethodError when
sending a simple SOAP request
[ http://issues.apache.org/jira/browse/AXIS2-1187?page=comments#action_12435786 ]
Thilina Gunarathne commented on AXIS2-1187:
-------------------------------------------
Please post details about your environment...
Java version, Tomcat version..
Also please check the version of the axiom-api-XXX.jar in your web-inf/lib folder... If the version is 1.1, please replace it with axiom-api-1.1.1.jar and try it..
> java.lang.NoSuchMethodError when sending a simple SOAP request
> --------------------------------------------------------------
>
> Key: AXIS2-1187
> URL: http://issues.apache.org/jira/browse/AXIS2-1187
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: transports
> Affects Versions: 1.1
> Environment: Windows XP Pro SP2
> Axis2 runs under Tomcat 5.5
> Reporter: Shahar Kedar
> Attachments: SabraFood_ItemsGroup.wsdl, services.xml
>
>
> I'm trying to invoke the GetItemsByType method with the following SOAP message:
> <?xml version="1.0" encoding="utf-8" ?>
> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> - <soap:Body>
> - <GetItemsByType xmlns="http://tempuri.org/">
> <ItemType>FRT</ItemType>
> </GetItemsByType>
> </soap:Body>
> </soap:Envelope>
> The HTTP header is:
> - <HTTPHeaders>
> <vsdebuggercausalitydata>AwAAAFetAecbQjtBhmi+VXMTXJsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</vsdebuggercausalitydata>
> <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.573)</user-agent>
> <content-type>text/xml; charset=utf-8</content-type>
> <soapaction>"http://tempuri.org/GetItemsByType"</soapaction>
> <content-length>331</content-length>
> <expect>100-continue</expect>
> <connection>Keep-Alive</connection>
> <host>10.62.20.126:5000</host>
> </HTTPHeaders>
> The WSDL is:
> - <wsdl:definitions xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
> <wsdl:documentation>SabraFood_ItemsGroup</wsdl:documentation>
> - <wsdl:types>
> - <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
> <xsd:element name="GetItemsByType" type="tns:GetItemsByType" />
> - <xsd:complexType name="GetItemsByType">
> - <xsd:sequence>
> <xsd:element minOccurs="0" name="ItemType" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="GetItemsByTypeResponse" type="tns:GetItemsByTypeResponse" />
> - <xsd:complexType name="GetItemsByTypeResponse">
> - <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="Items" type="tns:ItemSummary" />
> </xsd:sequence>
> </xsd:complexType>
> - <xsd:complexType name="ItemSummary">
> - <xsd:sequence>
> <xsd:element minOccurs="0" name="Description" type="xsd:string" />
> <xsd:element minOccurs="0" name="Name" type="xsd:string" />
> <xsd:element minOccurs="0" name="Number" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="GetItemsTransactionStateful" type="tns:GetItemsTransactionStateful" />
> - <xsd:complexType name="GetItemsTransactionStateful">
> - <xsd:sequence>
> <xsd:element minOccurs="0" name="emulationSession" type="tns:EmulationSession" />
> </xsd:sequence>
> </xsd:complexType>
> - <xsd:complexType name="EmulationSession">
> - <xsd:sequence>
> <xsd:element minOccurs="0" name="SessionPassword" type="xsd:string" />
> <xsd:element minOccurs="0" name="SessionId" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="GetItemsTransactionStatefulResponse" type="tns:GetItemsTransactionStatefulResponse" />
> - <xsd:complexType name="GetItemsTransactionStatefulResponse">
> - <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string" />
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string" />
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="GetItemsTransaction" type="tns:GetItemsTransaction" />
> - <xsd:complexType name="GetItemsTransaction">
> <xsd:sequence />
> </xsd:complexType>
> <xsd:element name="GetItemsTransactionResponse" type="tns:GetItemsTransactionResponse" />
> - <xsd:complexType name="GetItemsTransactionResponse">
> - <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string" />
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string" />
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
> </wsdl:types>
> - <wsdl:message name="GetItemsTransactionStatefulInput">
> <wsdl:part name="part1" element="tns:GetItemsTransactionStateful" />
> </wsdl:message>
> - <wsdl:message name="GetItemsTransactionStatefulOutput">
> <wsdl:part name="part1" element="tns:GetItemsTransactionStatefulResponse" />
> </wsdl:message>
> - <wsdl:message name="GetItemsTransactionInput">
> <wsdl:part name="part1" element="tns:GetItemsTransaction" />
> </wsdl:message>
> - <wsdl:message name="GetItemsTransactionOutput">
> <wsdl:part name="part1" element="tns:GetItemsTransactionResponse" />
> </wsdl:message>
> - <wsdl:message name="GetItemsByTypeInput">
> <wsdl:part name="part1" element="tns:GetItemsByType" />
> </wsdl:message>
> - <wsdl:message name="GetItemsByTypeOutput">
> <wsdl:part name="part1" element="tns:GetItemsByTypeResponse" />
> </wsdl:message>
> - <wsdl:portType name="SabraFood_ItemsGroupPortType">
> - <wsdl:operation name="GetItemsTransactionStateful">
> <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionStatefulInput" wsaw:Action="http://tempuri.org/GetItemsTransactionStateful" />
> <wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionStatefulOutput" wsaw:Action="http://tempuri.org/SabraFood_ItemsGroupPortType/GetItemsTransactionStatefulResponse" />
> </wsdl:operation>
> - <wsdl:operation name="GetItemsTransaction">
> <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionInput" wsaw:Action="http://tempuri.org/GetItemsTransaction" />
> <wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionOutput" wsaw:Action="http://tempuri.org/SabraFood_ItemsGroupPortType/GetItemsTransactionResponse" />
> </wsdl:operation>
> - <wsdl:operation name="GetItemsByType">
> <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsByTypeInput" wsaw:Action="http://tempuri.org/GetItemsByType" />
> <wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsByTypeOutput" wsaw:Action="http://tempuri.org/SabraFood_ItemsGroupPortType/GetItemsByTypeResponse" />
> </wsdl:operation>
> </wsdl:portType>
> - <wsdl:binding name="SabraFood_ItemsGroupSOAP11Binding" type="tns:SabraFood_ItemsGroupPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
> - <wsdl:operation name="GetItemsTransactionStateful">
> <soap:operation soapAction="http://tempuri.org/GetItemsTransactionStateful" style="document" />
> - <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsTransaction">
> <soap:operation soapAction="http://tempuri.org/GetItemsTransaction" style="document" />
> - <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsByType">
> <soap:operation soapAction="http://tempuri.org/GetItemsByType" style="document" />
> - <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:binding name="SabraFood_ItemsGroupSOAP12Binding" type="tns:SabraFood_ItemsGroupPortType">
> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
> - <wsdl:operation name="GetItemsTransactionStateful">
> <soap12:operation soapAction="http://tempuri.org/GetItemsTransactionStateful" style="document" />
> - <wsdl:input>
> <soap12:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap12:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsTransaction">
> <soap12:operation soapAction="http://tempuri.org/GetItemsTransaction" style="document" />
> - <wsdl:input>
> <soap12:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap12:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsByType">
> <soap12:operation soapAction="http://tempuri.org/GetItemsByType" style="document" />
> - <wsdl:input>
> <soap12:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap12:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:binding name="SabraFood_ItemsGroupHttpBinding" type="tns:SabraFood_ItemsGroupPortType">
> <http:binding verb="POST" />
> - <wsdl:operation name="GetItemsTransactionStateful">
> <http:operation location="GetItemsTransactionStateful" />
> - <wsdl:input>
> <mime:content type="text/xml" />
> </wsdl:input>
> - <wsdl:output>
> <mime:content type="text/xml" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsTransaction">
> <http:operation location="GetItemsTransaction" />
> - <wsdl:input>
> <mime:content type="text/xml" />
> </wsdl:input>
> - <wsdl:output>
> <mime:content type="text/xml" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="GetItemsByType">
> <http:operation location="GetItemsByType" />
> - <wsdl:input>
> <mime:content type="text/xml" />
> </wsdl:input>
> - <wsdl:output>
> <mime:content type="text/xml" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:service name="SabraFood_ItemsGroup">
> - <wsdl:port name="SabraFood_ItemsGroupSOAP11port_http" binding="tns:SabraFood_ItemsGroupSOAP11Binding">
> <soap:address location="http://10.62.20.126:2380/applinx/services/SabraFood_ItemsGroup" />
> </wsdl:port>
> - <wsdl:port name="SabraFood_ItemsGroupSOAP12port_http" binding="tns:SabraFood_ItemsGroupSOAP12Binding">
> <soap12:address location="http://10.62.20.126:2380/applinx/services/SabraFood_ItemsGroup" />
> </wsdl:port>
> - <wsdl:port name="SabraFood_ItemsGroupHttpport0" binding="tns:SabraFood_ItemsGroupHttpBinding">
> <http:address location="http://10.62.20.126:2380/applinx/rest/SabraFood_ItemsGroup" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> And I'm getting the following exception from the Tomcat server:
> java.lang.NoSuchMethodError: org.apache.axiom.attachments.Attachments: method <init>()V not found
> org.apache.axis2.context.MessageContext.<init>(MessageContext.java:58)
> org.apache.axis2.transport.http.AxisServlet.createAndSetInitialParamsToMsgCtxt(AxisServlet.java:83)
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:225)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org