I'm developping an application containning a web service using Axis 1.2 with Tomcat 5.5.7. I had design a Java interface for the WS and create mi deploy.wsdd file for it using Message-style.
Everithing goes right in deployment process, but when i try too use de WS from a client, i get de following error:
Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.InstantiationException: chatService.IChatServer faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname: visit18 (este el nombre de esta máquina)
java.lang.InstantiationException: chatService.IChatServer (esto es lo que da problema) at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder .java:260 ) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. java:169) at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri alization ContextImpl.java:1015) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar ser.java: 585) at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespa ceBinder. java:898) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind er.java:6 44) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( XMLDocume ntFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatche r.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocument FragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j ava:1175) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa tionConte xtImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at samples.message.TestChatMsg.doit(TestChatMsg.java:64) at samples.message.TestChatMsg.main(TestChatMsg.java:86)
The code of my interface is this:
public interface IChatServer { public void connect(SOAPEnvelope req, SOAPEnvelope resp); public void disconnect(SOAPEnvelope req, SOAPEnvelope resp); public void publishMessage(SOAPEnvelope req, SOAPEnvelope resp); public void retrieveMessages(SOAPEnvelope req, SOAPEnvelope resp); public void retrieveUsers(SOAPEnvelope req, SOAPEnvelope resp); }