java.lang.ClassCastException from Implementation of javax.xml.stream.XMLInputFactory in WebLogic Server 10.3GA (Doc ID 1069547.1)

Last updated on MAY 24, 2017

Applies to:

Oracle Weblogic Server - Version 10.3 to 10.3.2
Information in this document applies to any platform.
*** Checked for relevance on 28-August-2012 ***

Symptoms

Scenario:

In this situation, a java.lang.ClassCastException occurs, with an exception stack like the following:

java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
  at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)
  at weblogic.servlet.internal.FaceConfigCacheHelper$FacesConfigsIOHelper.parseXML(FaceConfigCacheHelper.java:81)
  at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
  at weblogic.servlet.internal.FaceConfigCacheHelper.parseFacesConfigs(FaceConfigCacheHelper.java:52)
  at weblogic.servlet.internal.War.getFacesManagedBeans(War.java:939)
  at weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getManagedBeanClasses(WebAppServletContext.java:3597)
  at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:128)

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