Webcenter MDS Personalization Deployment Error: ADFConfigurationMDS-00035: cannot load the class (Doc ID 1525864.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

In a custom WebCenter application, there is a user page (customization on this page visible for the current user only).

There is an error upon deployment with a custom class:

oracle.adf.share.config.ADFMDSConfig parseADFConfiguration
SEVERE: MDSConfigurationException encountered in parseADFConfigurationMDS-00035: cannot load the class: com.mhis.custom.UserCC.
oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: com.mhis.custom.UserCC.
at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
at oracle.mds.config.CustConfig.(CustConfig.java:242)
at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:701)
at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:764)
at oracle.mds.config.MDSConfig.(MDSConfig.java:420)
at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:472)
at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:543)
at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:521)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:586)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:581)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:50)
at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1635)
at oracle.webcenter.dt.utils.MDSUtil.getMDSSession(MDSUtil.java:136)
at oracle.webcenter.portal.dt.appnav.PortalContextMenuListener.addCreateRemoveSiteResMenuItem(PortalContextMenuListener.java:173)
at oracle.webcenter.portal.dt.appnav.PortalContextMenuListener.menuWillShow(PortalContextMenuListener.java:223)
at oracle.ide.controller.ContextMenu.invokeMenuWillShow(ContextMenu.java:568)
at oracle.ide.controller.ContextMenu.callMenuWillShow(ContextMenu.java:533)
at oracle.ide.controller.ContextMenu.prepareShow(ContextMenu.java:285)
at oracle.ide.controller.ContextMenu.show(ContextMenu.java:259)
at oracle.ideimpl.explorer.BaseTreeExplorer.tryPopup(BaseTreeExplorer.java:2266)
at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:2209)
at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:240)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
.......
oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: com.mhis.custom.UserCC.
 o.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
 o.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
 o.mds.config.CustConfig.(CustConfig.java:242)
 o.mds.config.MDSConfig.loadFromBean(MDSConfig.java:701)
 o.mds.config.MDSConfig.loadFromElement(MDSConfig.java:764)
.....
oracle.webcenter.dt.utils.MDSUtil getMDSSession
WARNING: Error while retrieving the MDS session.
oracle.adf.share.ADFShareException: Error encountered while creating the MDS Session
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:59)
at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1635)
at oracle.webcenter.dt.utils.MDSUtil.getMDSSession(MDSUtil.java:136)
at oracle.webcenter.portal.dt.appnav.PortalContextMenuListener.addCreateRemoveSiteResMenuItem(PortalContextMenuListener.java:173)
at oracle.webcenter.portal.dt.appnav.PortalContextMenuListener.menuWillShow(PortalContextMenuListener.java:223)
at oracle.ide.controller.ContextMenu.invokeMenuWillShow(ContextMenu.java:568)
at oracle.ide.controller.ContextMenu.callMenuWillShow(ContextMenu.java:533)
....
Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: com.mhis.custom.UserCC.
at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
at oracle.mds.config.CustConfig.(CustConfig.java:242)
at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:701)
at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:764)
at oracle.mds.config.MDSConfig.(MDSConfig.java:420)
at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:159)
... 50 more

oracle.webcenter.portal.dt.appnav.PortalContextMenuListener:01-Oct-2012 14:22:25 oracle.webcenter.portal.dt.appnav.PortalContextMenuListener menuWillShow
WARNING: Error while adding the context menu items for portal resources.
oracle.adf.share.ADFShareException: Error encountered while creating the MDS Session
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:59)
at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1635)

Caused by: oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:472)
at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:543)
at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:521)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:586)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:581)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:50)
... 40 more
Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: com.mhis.custom.UserCC.
at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
at oracle.mds.config.CustConfig.(CustConfig.java:242)
at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:701)
at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:764)
at oracle.mds.config.MDSConfig.(MDSConfig.java:420)
at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:159)
... 50 more


The following documentation/blogs are being used to customize the MDS layers:

Oracle® Fusion Middleware Developer's Guide for Oracle WebCenter 11g Release 1 (11.1.1.4.0)
22.3 Adding Customization Layers to View and Edit Modes: Example




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