My Oracle Support Banner

Unable to Call a Managed Bean from a Shared Library From WebCenter Portal After Migrating From Custom Portal to WebCenter Spaces: java.lang.ClassNotFoundException (Doc ID 2595197.1)

Last updated on OCTOBER 04, 2022

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.


When attempting to call a custom managed bean from WebCenter Portal,
the following error occurs.


[date:time] [WC_Spaces] [ERROR] [] [oracle.adf.controller.v2.context.LifecycleContext] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <user>] [ecid: <ecid>,0] [APP: webcenter#] [DSID: <dsid>] ADFc: Error creating ControllerClass '<className>', using the default PageLifecycle implementation.[[
java.lang.ClassNotFoundException: <className>
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass( 
      at weblogic.utils.classloaders.GenericClassLoader.findClass(
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(
      at java.lang.ClassLoader.loadClass(
      at java.lang.ClassLoader.loadClass(
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(

[date:time] [WC_Spaces] [NOTIFICATION] [J2EE JSP-00008] [oracle.j2ee.jsp] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <user>] [ecid: <ecid>,0] [APP: webcenter#] [DSID: <dsid>] unable to dispatch JSP page: The following exception occurred:.[[
javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class '<className>'
      at oracle.adfinternal.controller.util.Utils.createAndLogFacesException(
      at oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(
      at oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(
      at oracle.adfinternal.controller.state.ScopeMap.get(
      at javax.el.MapELResolver.getValue(
      at javax.el.CompositeELResolver.getValue(
      at com.sun.el.parser.AstValue.getValue(
      at com.sun.el.ValueExpressionImpl.getValue(
      at oracle.jsp.runtime.OracleUnifiedELRuntime.evaluateValueExpression(


The issue can be reproduced at will with the following steps:

  1. Tested the managed bean bean in the ADF application in the IntegratedWebLogic Server and confirmed it runs without issues.

  2. Deploy the ADF application as shared library to the WC_Spaces managed server.

  3. Call the managed bean from a page.
    This will fail and the WC_Spaces-diagnostic.log will show the error.





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

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