Howdy,
Print out the tomcat standalone xml before transforming, and then the
tomcat+apache xml, and look for differences.  Where is this XML coming
from?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Daniel Herbison [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 22, 2003 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: javax.xml.transform.Transformer
>
>I'm using this code to transform xml using and xsl file:
>
>   TransformerFactory tFactory = TransformerFactory.newInstance();
>   Transformer transformer = tFactory.newTransformer(xsl);
>   transformer.setOutputProperty("omit-xml-declaration","yes");
>   transformer.transform(new StreamSource(xml),sr);
>
>When I run the code in a Tomcat standalone installation everything
works
>great!  However when I run the code under tomcat from Apache using the
>mod_jk connector I get an error (below) on the
>"tFactory.newTransformer(xsl)" line.  Done anyone have any idea what is
>happening?
>
>org.xml.sax.SAXParseException: White spaces are required between
publicId
>and systemId.
>
>at
>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a:11
>8
>9)
>
>at
>org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transfor
merF
>a
>ctoryImpl.java:934)
>
>at
>org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transf
orme
>r
>FactoryImpl.java:750)
>
>at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124)
>
>at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115)




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to