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 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms


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

ERROR

[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#11.1.1.4.0] [DSID: <dsid>] ADFc: Error creating ControllerClass '<className>', using the default PageLifecycle implementation.[[
java.lang.ClassNotFoundException: <className>
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) 
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
...

[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#11.1.1.4.0] [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(Utils.java:196)
      at oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:192)
      at oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(ManagedBeanFactory.java:873)
      at oracle.adfinternal.controller.state.ScopeMap.get(ScopeMap.java:82)
      at javax.el.MapELResolver.getValue(MapELResolver.java:196)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:185)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      at oracle.jsp.runtime.OracleUnifiedELRuntime.evaluateValueExpression(OracleUnifiedELRuntime.java:169)
...




STEPS

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.

 

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution


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