You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Deheul, Xavier" <xa...@creditlyonnais.fr> on 2001/11/05 17:55:49 UTC
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 ?