This is probably related to the incompatible parser.jar file in the tomcat/lib directory.
You need to rename that jar file to zparser.jar and include the xerces and xalan .jar files before that one. Renaming to zparser is recommended since the tomcat startup files build the classpath by looping through the .jar files.
If you are running as a service you need to configure the wrapper.properties file for tomcat accordingly.
-Chris.
-----Original Message-----
From: Deheul, Xavier [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ezmlm response
I have a simple java code :
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource(pageXSL));
I have no problem using it in a main method but it doesn't work in a JSP
File.
For the pageXSL parameter I have the same problem when i use a relative or
an absolute path or when i use an inputStream with java.net.URL.
java.lang.ClassCastException: javax.xml.transform.stream.StreamSource
at
javax.xml.transform.sax.SAXSource.sourceToInputSource(SAXSource.java:154)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:877)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:747)
at _xsl._jspSample__jsp._jspService(/At/xsl/jspSample.jsp:83)
at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
at com.caucho.jsp.Page.service(Page.java:398)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerException
....
Could you help me please ?
