ClassCastException Reported In ADF Portlet Producers in High-Availability and Clustered Environments (Doc ID 1324549.1)

Last updated on NOVEMBER 22, 2016

Applies to:

Oracle WebCenter Portal - Version 11.1.1.3.0 to 11.1.1.3.0 [Release 11g]
Information in this document applies to any platform.
In a clustered environment, ADF-based portlets could report ClassCastExceptions in the managed server logs.
Checked for relevance on 10-Apr-2013

Symptoms

A number of portlets, each within its own ear file.  These portlets were created in JDeveloper by portletizing ADF/JSF-based applications then  deployed these to a portlet producer cluster managed server.
The following error shows up in the managed server log.


[BEA-101020] ... Servlet failed with Exception[[
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:154)
at com.sun.faces.context.ExternalContextImpl.<init>(ExternalContextImpl.java:128)
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
at org.apache.myfaces.portlet.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:76)
at oracle.portlet.bridge.adf.context.ADFPortletFacesContextFactoryImpl.getFacesContext(ADFPortletFacesContextFactoryImpl.java:36)
...
Also see similar errors for oracle.portlet.server.containerimpl.PortletApplicationImpl

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