My Oracle Support Banner

EJB compliance check throws error "ComplianceException: Related beans must use the same datasource" (Doc ID 948603.1)

Last updated on APRIL 15, 2018

Applies to:

Oracle WebLogic Server - Version 9.0 to 10.3
Information in this document applies to any platform.

Symptoms

Unable to run appc on EJB's to build application which use two different datasources in a same
Container Managed Relationship (CMR). This was previously allowed in WebLogic 8.1.

Error thrown is:

weblogic.j2ee.validation.ComplianceException: Related beans must use the same datasource.

Changes

EJB Compliance Checker in WebLogic Server versions from 9.0 is made strict to not allow
two different datasources to participate in single Container Managed Relationship (CMR).

As a result, upgrade to later versions of WebLogic Server may fail.

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.