I am getting following error while applying xslt in wildfly 14. Sometime it is successfully transform the xml and sometime it gives following error.
Caused by: 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)
I have added following dependency in pom.xml file
<dependency> <groupId>xalan</groupId> <artifactId>xalan</artifactId> <version>2.7.1</version> </dependency>
Can you please let me know what is wrong?
Thanks
Message was edited by: Bhavesh Kharwa