You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by dumdum 420 <du...@hotmail.com> on 2002/11/21 16:29:56 UTC

Calculator.jws cant make it work help!!

Hi All,

When I try to run the very basic example of Calculator.jws using 
CalcClient.java passing parameters as -p8080 add 5 7

I get the following exception.

Kindly help I am really stuck.



AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXParseException: The markup in the document 
preceding the root element must be well-formed.
faultActor: null
faultDetail:
	stackTrace: org.xml.sax.SAXParseException: The markup in the document 
preceding the root element must be well-formed.
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
	at 
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
	at 
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:753)
	at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
	at 
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
	at org.apache.axis.client.Call.invoke(Call.java:2102)
	at org.apache.axis.client.Call.invoke(Call.java:1851)
	at org.apache.axis.client.Call.invoke(Call.java:1777)
	at org.apache.axis.client.Call.invoke(Call.java:1315)
	at com.mckinsey.ft.jws.CalcClient.main(CalcClient.java:100)


org.xml.sax.SAXParseException: The markup in the document preceding the root 
element must be well-formed.
org.xml.sax.SAXParseException: The markup in the document preceding the root 
element must be well-formed.
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
	at 
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
	at 
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:753)
	at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
	at 
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
	at org.apache.axis.client.Call.invoke(Call.java:2102)
	at org.apache.axis.client.Call.invoke(Call.java:1851)
	at org.apache.axis.client.Call.invoke(Call.java:1777)
	at org.apache.axis.client.Call.invoke(Call.java:1315)
	at com.mckinsey.ft.jws.CalcClient.main(CalcClient.java:100)
Exception in thread "main"

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


Re: Calculator.jws cant make it work help!!

Posted by Thyagarajan Vasudevan <th...@hotmail.com>.
Hi
    Do u have axis running as a separate Web Application or is part of your
own Web Application. If it is the former, then make sure that you can access
:
http://<_web_application_root>/axis/services/AdminServices.

If you have running within your own Web Application,
then change the CalClient in the appropriate way so that
it calls the right path for the calculator.jws.

Best
Thyaga

----- Original Message -----
From: "dumdum 420" <du...@hotmail.com>
To: <ax...@xml.apache.org>
Sent: Thursday, November 21, 2002 7:29 AM
Subject: Calculator.jws cant make it work help!!


> Hi All,
>
> When I try to run the very basic example of Calculator.jws using
> CalcClient.java passing parameters as -p8080 add 5 7
>
> I get the following exception.
>
> Kindly help I am really stuck.
>
>
>
> AxisFault
> faultCode: {http://xml.apache.org/axis/}Server.userException
> faultString: org.xml.sax.SAXParseException: The markup in the document
> preceding the root element must be well-formed.
> faultActor: null
> faultDetail:
> stackTrace: org.xml.sax.SAXParseException: The markup in the document
> preceding the root element must be well-formed.
> at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:570)
> at
>
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:753)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:232)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
> at org.apache.axis.client.Call.invoke(Call.java:2102)
> at org.apache.axis.client.Call.invoke(Call.java:1851)
> at org.apache.axis.client.Call.invoke(Call.java:1777)
> at org.apache.axis.client.Call.invoke(Call.java:1315)
> at com.mckinsey.ft.jws.CalcClient.main(CalcClient.java:100)
>
>
> org.xml.sax.SAXParseException: The markup in the document preceding the
root
> element must be well-formed.
> org.xml.sax.SAXParseException: The markup in the document preceding the
root
> element must be well-formed.
> at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:570)
> at
>
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:753)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:232)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
> at org.apache.axis.client.Call.invoke(Call.java:2102)
> at org.apache.axis.client.Call.invoke(Call.java:1851)
> at org.apache.axis.client.Call.invoke(Call.java:1777)
> at org.apache.axis.client.Call.invoke(Call.java:1315)
> at com.mckinsey.ft.jws.CalcClient.main(CalcClient.java:100)
> Exception in thread "main"
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>