Weblogic ClassCastException <p>I am getting the following exception from WebLogic console.</p> <pre><code>java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to oracle.xml.jaxp.JXDocumentBuilderFactory </code></pre> <p>I am using oracle.xml.jaxp.JXDocumentBuilderFactory inside my JCA adapter and when I invoke methods on JCA adapter connection, it throws the above Exception. I have installed xmlparserv2.jar into $DOMAIN_DIR/lib.</p> <p>This is the line of code that throws above mentioned exception.</p> <pre><code>JXDocumentBuilderFactory factory =(JXDocumentBuilderFactory)JXDocumentBuilderFactory.newInstance(); </code></pre> <p>It seems to me that WebLogic is using different JXDocumentBuilderFactory and there is some conflict in classpath setting or configuration. </p> <p>Can anyone help me with this issue? Thanks in advance.</p> <p>Regards,</p> <p>K.H</p>