File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
ClassCastException with TransformerFactory
Joined: May 11, 2004
May 14, 2004 16:12:00
I am using jdk1.3.1 with Tomcat4.1
TransformerFactory tf = TransformerFactory.newInstance();
gives me an exception of
I have tried everything I can think of!
These are the things I have tried:
1. I got the "jaxp-api.jar" file from the
web services developer pack 3.1 and placed it here:
2. I placed a file called "jaxp.properties" here:
with this one line:
3. I also tried placing the "jaxp-api.jar" file here:
What should I do?
My whole code snippet is this ==>
DOMSource xml = new DOMSource(document); Source xsl = new StreamSource(xslStream); Result result = new StreamResult(output); TransformerFactory tf = TransformerFactory.newInstance(); Transformer stylesheet = tf.newTransformer( xsl ); stylesheet.transform( xml, result );
I agree. Here's the link:
subject: ClassCastException with TransformerFactory
XML on the fly using servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014