I have this statement in my
Java program:
TransformerFactory factory = TransformerFactory.newInstance();
Transformer t = factory.newTransformer(new StreamSource(styleFile));
Where styleFile is an xml file. Everything runs OK at command line or in an
IDE environment. When I run the application in
Tomcat servlet, I get the �Namespace not supported by SAXParser� error.
In Tomcat lib directory I have Xalan.jar (Xalan-j-2-2-D9) and xerces.jar (xerces-1.4.2). There is a parser.jar in tomcat\lib but it is loaded after Xalan/xerces.
Any ideas?
Thanks.
Bruce
BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design
Crazy Bikes created by m-Power