ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory (Doc ID 2175492.1)

Last updated on AUGUST 03, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

 The following error occurs on the WebLogic Server while deploying an application 

java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
at com.sun.xml.ws.util.xml.XmlUtil.newDocumentBuilderFactory(XmlUtil.java:380)
at com.sun.xml.ws.db.toplink.JAXBContextFactory.(JAXBContextFactory.java:211)
at java.lang.Class.forName0(Native Method)

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms