[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    Re: UserGuide Calculator example broken in Axis 1.2?
From:       MKW <m.wright () ru ! ac ! za>
Date:       2005-05-31 23:50:15
Message-ID: 1117583418.355674 () squirrel ! ru ! ac ! za
[Download RAW message or body]

Apologies.  I realized it was a problem with the server - I was using 
Tomcat 5.0.27.  Have just updated to 5.5.9 and it works fine.

Madeleine


MKW wrote:
> Just trying out the 1.2 Axis.  Deployed the userguide Calculator class 
> as a service (not jws) inside a "calc" package.  Found the client didn't 
> work any more - but it did in the last version.  It now produces the 
> error message given at the end.
> 
> Also experimented capturing the generated wsdl - used a very basic wsdd 
> file for deployment:
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="CalcService" provider="java:RPC">
> <parameter name="className" value="calc.Calculator"/>
> <parameter name="allowedMethods" value="*"/>
> </service>
> </deployment>
> 
> Generated SOAP requests in both XMLSpy and Oxygen.  They both generated 
> basically the same:
> 
> <SOAP-ENV:Envelope 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Header/>
> <SOAP-ENV:Body>
> <oxy:add xmlns:oxy="http://calc"
> 
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <in0>INT</in0>
> <in1>INT</in1>
> </oxy:add>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> I added values and sent them but the response came back from each:
> org.apache.commons.httpclient.HttpException :
> <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault>< \
> faultcode>soapenv:Server.generalException</faultcode><faultstring>java.lang.IncompatibleClassChangeError; \
>  nested exception is:
> java.lang.IncompatibleClassChangeError</faultstring><detail><ns1:hostname 
> xmlns:ns1="http://xml.apache.org/axis/">Mad</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope> \
>  
> 
> Is something broken - or am I missing something??
> 
> Madeleine
> 
> (exception from Client)
> Exception in thread "main" AxisFault
> faultCode: 
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString: java.lang.IncompatibleClassChangeError; nested exception is:
> java.lang.IncompatibleClassChangeError
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}hostname:Mad
> 
> java.lang.IncompatibleClassChangeError; nested exception is:
> java.lang.IncompatibleClassChangeError
> at 
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) 
> 
> at 
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) 
> 
> at 
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) \
>  
> at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown \
>  Source)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown \
>  Source)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown \
>  Source)
> at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
> Source)
> at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
> Source)
> at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at 
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) \
>  
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> at 
> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:784) 
> 
> at 
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> at 
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 
> 
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at CalcClient.main(CalcClient.java:47)
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic