WebLogic Applications With JSF 2.1.6 Throws Error in WebLogic -"java.lang.ClassCastException: com.oracle.injection.integration.jsf.WeblogicFacesConfigResourceProvider cannot be cast to com.sun.faces.spi.ConfigurationResourceProvider"

(Doc ID 2217297.1)

Last updated on DECEMBER 27, 2016

Applies to:

Oracle WebLogic Server - Version to [Release 12c]
Information in this document applies to any platform.


Applications with jsf 2.1.6 deploys fine, but throws error while running in Weblogic server


There is a flag in the deployment weblogic.xml file (prefer-web-inf-classes=true ) that is supposed to prevent this (and does on Weblogic 10.3.5). Same setting no longer works in this version of Weblogic


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