You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by De...@riskinc.com on 2001/04/07 12:39:49 UTC

trouble running SOAP Samples

hi all,

I'm starting to use the APACHE SOAP 2.1 implementation,am trying to run the
samples provided with the distribution. but when i try to execute the
addressbook sample i get the followning exception .
i have added the jar files to the claspath , can anybody help me out .

C:\soap-2_1\samples\addressbook>testit
This test assumes a server URL of
http://localhost:8080/soap/server/rpcrouter
Deploying the addressbook service...
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.server.DeploymentDescriptor.fromXML(Unknown
Source)
        at org.apache.soap.server.ServiceManagerClient.main(Unknown Source)
.
Verify that its there
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at org.apache.soap.server.ServiceManagerClient.invokeMethod(Unknown
Sour
ce)
        at org.apache.soap.server.ServiceManagerClient.list(Unknown Source)
        at org.apache.soap.server.ServiceManagerClient.main(Unknown Source)
.
Getting info for "Mr Good"
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at samples.addressbook.GetAddress.main(GetAddress.java:125)
.
Adding "John Doe"
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at samples.addressbook.PutAddress.main(PutAddress.java:139)
.
Query "Mr Doe" to make sure it was added
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at samples.addressbook.GetAddress.main(GetAddress.java:125)
.
Adding an XML file of listings
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.DOM2Writer.print(Unknown Source)
        at org.apache.soap.util.xml.DOM2Writer.serializeAsXML(Unknown
Source)
        at org.apache.soap.Utils.marshallNode(Unknown Source)
        at
org.apache.soap.encoding.literalxml.XMLParameterSerializer.marshall(U
nknown Source)
        at org.apache.soap.rpc.RPCMessage.serializeParams(Unknown Source)
        at org.apache.soap.rpc.RPCMessage.marshall(Unknown Source)
        at org.apache.soap.Body.marshall(Unknown Source)
        at org.apache.soap.Envelope.marshall(Unknown Source)
        at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown
Source
)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at samples.addressbook.PutListings.main(PutListings.java:112)
.
Get everyone!
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at samples.addressbook.GetAllListings.main(GetAllListings.java:102)
.
Undeploy it now
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at org.apache.soap.server.ServiceManagerClient.invokeMethod(Unknown
Sour
ce)
        at org.apache.soap.server.ServiceManagerClient.undeploy(Unknown
Source)
        at org.apache.soap.server.ServiceManagerClient.main(Unknown Source)
.
Verify that its gone
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(Unknown Source)
        at org.apache.soap.util.xml.QName.matches(Unknown Source)
        at org.apache.soap.Envelope.unmarshall(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at org.apache.soap.server.ServiceManagerClient.invokeMethod(Unknown
Sour
ce)
        at org.apache.soap.server.ServiceManagerClient.list(Unknown Source)
        at org.apache.soap.server.ServiceManagerClient.main(Unknown Source)

Debasish Sahu.
Senior Software Engineer
RMS India.
A-7,Sector-16
Noida-201301.
Uttar Pradesh.India.
Phone :  +91-118-4511102
Fax :  +91-118-4511109
Website : http://www.rmsinet.com