This error message tends to suggest a failure reported by the XML parser. I would expect to see some more detailed error messages in a log file somewhere.
 
I would think the most likely explanation, if the stylesheet itself hasn't changed, is that there are references to external files (e.g. a DTD) that cannot be resolved in the new environment.
 
Michael Kay


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Néstor Boscán
Sent: 13 July 2005 06:16
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Problem with Saxon 6.5.3 and Tomcat 5.0.28

Hi
 
I have a web application that uses Saxon 6.5.3 and runs perfectly  on Oracle OC4J and Resin. When I  deploy the  same WAR in Tomcat I  5.0.28 get :
 
Caused by: javax.xml.transform.TransformerConfigurationException: Failed to parse stylesheet at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:119)
        at com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:127)
        at ve.com.tcs.multichannel.transformer.TransformerManagerImpl.a(UnknownSource) 
 
 
There are no other errors. I checked the Tomcat directory to see if there was an old saxon or crimson library but I can't find one. What other factor can alter the execution of the Saxon transformer?
 
Regards,
 
Néstor Boscán