My web application uses its own Xerces and Xalan libraries. In other words, I put those librairies under WEB-INF/lib directory.
But When I am trying to run my sevlet which has following code:
try { TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer transform = xformFactory.newTransformer();
Source input = new DOMSource (doc); ByteArrayOutputStream byteOutputStream = new ByteArrayOutputStream(); javax.xml.transform.stream.StreamResult output = new StreamResult (byteOutputStream); transform.transform(input, output);
} catch( Exception ex) { _log.ErrorLog(ex) }
I got the following exception: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property! at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296) ......
But If I just put xalan.jar into common/endorsed/lib directory, everything is OK.
Any idea???
Thanks Jack
_________________________________________________________________
online games and music with a high-speed Internet connection! Prices start at less than $1 a day average. https://broadband.msn.com (Prices may vary by service area.)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]