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 Rishi Kulkarni <ri...@voxpath.com> on 2002/04/19 00:58:11 UTC
error with samples/userguide/ example2
I am new user to axis.
I downloaded the source coded , compiled it and executed the first example
given in the samples directory.
and as explained in the axis user guide. the example ran fine
% java samples.userguide.example1.TestClient
Sent 'Hello!', got 'Hello!'
i ran into the following problem when i executed the example2 as listed in
the axis users guide.
I copied the Calculator.jws under webapps/axis directory of my servlet
engine.
and executed
% java samples.userguide.example2.CalcClient -p8085 add 5 5
i get the following error: any hints at what might be wrong
java samples.userguide.example2.CalcClient -p8085 add 5 5
Exception in thread "main" org.xml.sax.SAXParseException: Document root
element is missing.
at org.apache.axis.AxisFault.makeFault(Unknown Source)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
Caused by: org.xml.sax.SAXParseException: Document root element is missing.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3052)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3040)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown
Source)
... 6 more
thanks
rishi