unable to load MDS configuration document MDS-01329: unable to load element “persistence-config”

Recently I had issue with my weblogic server start-up where MDS data sources failed to start and throw below error in Admin server logs.

Error 1 :-

Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element “persistence-config”
MDS-01370: MetadataStore configuration for metadata-store-usage “OWSM_TargetRepos” is invalid.
MDS-01377: Unable to get database connection from data source configured with JNDI name “jdbc/mds/owsm”.
java.lang.ClassCastException: java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext
java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext

at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
at oracle.mds.config.PConfig.(PConfig.java:758)
at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
at oracle.mds.config.MDSConfig.(MDSConfig.java:491)
Truncated. see log file for complete stacktrace

Error 2:-

<Unable to set the activation state to true for the application ‘wsm-pm’.
weblogic.application.ModuleException: [HTTP:101216]Servlet: “PolicyManagerValidator” failed to preload on startup in Web application: “/wsm-pm”.
oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:180)
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:497)

Error 3:-
<MDSConfigurationException encountered in parseADFConfigurationMDS-01330: unable to load MDS configuration document MDS-01329: unable to load element “persistence-config”
MDS-01370: MetadataStore configuration for metadata-store-usage “OWSM_TargetRepos” is invalid.
MDS-01377: Unable to get database connection from data source configured with JNDI name “jdbc/mds/owsm”.
java.lang.ClassCastException: java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext
java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext

oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS configuration document
MDS-01329: unable to load element “persistence-config”
MDS-01370: MetadataStore configuration for metadata-store-usage “OWSM_TargetRepos” is invalid.
MDS-01377: Unable to get database connection from data source configured with JNDI name “jdbc/mds/owsm”.
java.lang.ClassCastException: java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext
java.lang.Boolean cannot be cast to oracle.ucp.jdbc.oracle.OracleConnectionAffinityContext

Solution –

While looking in logs, I found issue issue with my MDS password which was expired. I have reset the password and that solved my issue.

 

Verify that wsm-pm is targeted to only managed server..Also verify that the JDBC data source mds-owsm is targeted to AdminServer and the managed server.  In my case I did targeted wsm-pm to admin server and same with data sources.

 

Advertisements
This entry was posted in Weblogic and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s