I am having a problem transforming XML with XSLs.
I have found a simillar problem with solution but meant for WebSphere.
I am using
Tomcat 4.0 and in the
Servlet when i do
Transformer xformer =TransformerFactory.newInstance().newTransformer();
It gives me the following error
java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryImpl
at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory
.java:119)
at jtheseus.xml.XMLExport.writeXmlFile(XMLExport.java:169)
at jtheseus.xml.XMLExport.xmlFactory(XMLExport.java:111)
at jtheseus.server.CompanyServlet.insert(CompanyServlet.java:1042)
at jtheseus.server.CompanyServlet.doPost(CompanyServlet.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV...
Could you please help me out