Title: Message
Hi Gourav,
 
You can set Resin to use the Xerces parser instead of the ones in the jars supplied like so:
 
http://www.caucho.com/quercus/faq/question.xtp?question_id=295
 
The following is taken verbatim from the article above:
 
The proper way to configure other XML/XSL parsers is to set the proper system-property values. You can do that in the resin.conf like:

<system-property javax.xml.transform.TransformerFactory=
             "org.apache.xalan.processor.TransformerFactoryImpl"/>
<system-property javax.xml.parsers.DocumentBuilderFactory=
             "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<system-property javax.xml.parsers.SAXParserFactory=
             "org.apache.xerces.jaxp.SAXParserFactoryImpl"/> 
Regards, 
Richard
 -----Original Message-----
From: Pani, Gourav [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 15:46
To: '[EMAIL PROTECTED]'
Subject: XML Parser Issues with Axis 1.1 and Resin 2.1.6

I am using Axis 1.1 on Resin 2.1.6 to post transactions to a service using Dynamic Proxy.  Unfortunately, the XML Parser that comes with Resin gives me the following error. 
General Exception thrown: Error processing WSDL document:  com.caucho.xml.XmlParseException: http://ww.foo.com/bar.wsdl:1: XML file has no top-element.  All well-formed XML files have a single top-level element.
 
When I took out resin.jar from my classpath in my static program it worked fine, which leads me to believe that the XML Parser with Resin is the problem.  However, my application has resin.jar in the CLASSPATH and I cannot take it out.  Is there any way that I can override the parser specifically in the object that is creating the dynamic proxy SOAP call?
 
TIA   
 

Reply via email to