WebLogic Applications With JSF 2.1.6 Throws Error in WebLogic 12.2.1.0.0 -"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 12.2.1.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

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

 



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

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