My Oracle Support Banner

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

Last updated on JANUARY 30, 2020

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)

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.