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

Last updated on OCTOBER 20, 2016

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

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