Hi
 
Add Xerces Jars to ur Class Path and just execute :)
 
But this error seems to be something related with the XML Parsing ..
May be Xerces will aslo give this
 
Cheers
Dhanush
 
 
Dhanush Gopinath
Software Engineer
Mahindra British Telecom Ltd
+91-020-4018100 Ext:-1218

"It's the possibility of having a dream come true , that makes life interesting" - Paulo Coelho, The Alchemist
----- Original Message -----
Sent: Friday, July 16, 2004 3:15 PM
Subject: need to use xerces parser implementation instead of crimson

Hi
 
I have got the axis happiness page up with all required and optional jar files. 
 
Please let me know how to override crimson to use xerces.
 
 
When I try using one of the examples  from the userguide folder in WEB-INF\axis( a simple one the CalcClient )
I get the following error :
 
Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Document root element is missing.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
Document root element is missing.
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:668)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.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 CalcClient.main(CalcClient.java:98)

org.xml.sax.SAXParseException: Document root element is missing.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
        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 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:3376)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:668)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        ... 7 more
 
I have been trying in vain to use xerces instead of crimson that comes bundled in jdk1.4.2_04.
 
I have downloaded xerces 2_5_0 and copied the jars to commom/lib of tomcat
 
I have read the article about xmlParsers it tells about choosing xerces ...but How do I do that?
please let me know if anyone has done this.
 
 
any help would be appreciated.
 
Thanks in advance
 
Brian.
 
 
 


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com

Reply via email to