ClassCastException « J2EE « JSP-Servlet Q&A





1. ClassCastException while parsing XML with WebLogic    stackoverflow.com

I'm getting the following error message:

java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory
I've gone through some forums researching this. They said to remove xml-apis.jar or that JAR files were conflicting. ...

2. getting ClassCastException while running weblogic.appc in the ANT build script    coderanch.com

Hi, I am trying to run a ANT build script on my application code and it gives ClassCastException in one of the classes in the weblogic.jar file. I have attached the stack trace in this forum. The problem here is that when i run the build script with EJB version 2.1 in my ejb-jar.xml it works perfectly fine and it creates ...