My Oracle Support Banner

The deployment of a second stand-alone multi-datasource fails (Doc ID 2011753.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 to 12.1.3.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Customer wants to deploy six stand-alone data-sources as application modules. Four of them (Data_1, Data_2, Config_1 and Config_2) are generic DataSources. The other two (MDS_Data and MDS_Config) are multi-datasources, each pointing to two of the generic datasources. See the documentation regarding stand-alone datasources for more information at http://docs.oracle.com/cd/E24329_01/web.1211/e24367/config.htm#JDBCA115. See the attached file for the complete configuration of these datasources.

NOTE: These stand-alone data sources are deployed using the <app-deployment> element in the config.xml file:
<app-deployment>
  <name>Data-DS-1-jdbc.xml</name>
  <target>a-target</target>
  <module-type>jdbc</module-type>
  <source-path>a-path\Data-DS-1-jdbc.xml</source-path>
  <security-dd-model>DDOnly</security-dd-model>
  <staging-mode xsi:nil="true"></staging-mode>
  <plan-staging-mode xsi:nil="true"></plan-staging-mode>
  <cache-in-app-directory>false</cache-in-app-directory>
</app-deployment>

Deploying the generic Datasources works fine as does the deployment of the first Multi-DataSource. However the deployment of the second Multi-DataSource fails:

Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: weblogic.common.ResourceException: Unable to locate configuration of data sources (Config-DS-1,Config-DS-2) being used by multi data source Config-MDS
  at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
  at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
  at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
  at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
  Truncated. see log file for complete stacktrace
Caused By: weblogic.common.ResourceException: Unable to locate configuration of data sources (Config-DS-1,Config-DS-2) being used by multi data source Config-MDS
  at weblogic.jdbc.module.JDBCModule.checkMDSConfig(JDBCModule.java:1067)
  at weblogic.jdbc.module.JDBCModule.getPoolBeans(JDBCModule.java:951)
  at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:325)
  at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
  at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
  Truncated. see log file for complete stacktrace
>
<Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: weblogic.common.ResourceException: Unable to locate configuration of data sources (Config-DS-1,Config-DS-2) being used by multi data source Config-MDS
  at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
  at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
  at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
  at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
  at weblogic.application.internal.flow.ModuleStateDriver.prepare(ModuleStateDriver.java:38)
  at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:133)
  at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)
  at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
  at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
  at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)
  at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
  at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:233)
  at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:749)
  at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1238)
  at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:252)
  at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:172)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:302)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
Caused by: weblogic.common.ResourceException: Unable to locate configuration of data sources (Config-DS-1,Config-DS-2) being used by multi data source Config-MDS
  at weblogic.jdbc.module.JDBCModule.checkMDSConfig(JDBCModule.java:1067)
  at weblogic.jdbc.module.JDBCModule.getPoolBeans(JDBCModule.java:951)
  at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:325)

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
Cause
Solution
References


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