https://bz.apache.org/bugzilla/show_bug.cgi?id=61875
Bug ID: 61875 Summary: Investigate whether Xalan can be removed Product: Taglibs Version: 1.2.5 Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: normal Priority: P2 Component: Standard Taglib Assignee: dev@tomcat.apache.org Reporter: nbm...@gmail.com Target Milestone: --- Created attachment 35593 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35593&action=edit patch switching back to JAXP I am currently evaluating whether the Xalan dependency can be dropped from taglibs and replaced with javax.xml.*. this is the code that is blowing up for me: Reader xsl = new InputStreamReader(filepath.openStream()); TransformerFactory transformerfactory = TransformerFactory.newInstance(); StreamSource ssXsl = new StreamSource(xsl); ssXsl.setSystemId(filepath.toExternalForm()); Templates templates = transformerfactory.newTemplates(ssXsl); Transformer transformer = templates.newTransformer(); last line causes: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137) at org.apache.xpath.XPathContext.<init>(XPathContext.java:102) at org.apache.xpath.XPathContext.<init>(XPathContext.java:349) at org.apache.xpath.XPathContext.<init>(XPathContext.java:337) at org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java:397) at org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java:200) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org