title: ClassCastException while parsing XML with WebLogic
body: <p>I'm getting the following error message:</p>
  
  <blockquote>
    <p>java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory</p>
  </blockquote>
  
  <p>I've gone through some forums researching this. They said to remove <code>xml-apis.jar</code> or that JAR files were conflicting. But even though I did all the suggested steps, I'm getting the same error.</p>