10 March 2015

OC4J: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

When using JDK 1.6 the following CastException may be obtained:

 org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

This is because we are using different
 [06/03/2015 11:42:52,105] com.sample.AutenticaAction.execute(AutenticaAction.java:331) - Error = 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.(XPathContext.java:102)
        at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:115)
        at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99)
        at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:184)
        at com.sample.AutenticaAction.selectSingleNode(AutenticaAction.java:59)
        at com.sample.AutenticaAction.execute(AutenticaAction.java:130)
        at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
        at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)

This was replicated in OC4J 10.1.3.3.0 because we are using different xalan.jar

No comments :

My Blog List

Blog Archive

There was an error in this gadget

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.