IBM Support

Opening the persistence.xml results in "multiple persistent unit is not supported"

Troubleshooting


Problem

If multiple persistent units are defined in persistence.xml in IBM Rational Application Developer for WebSphere Software version 7.5, attempts to open the persistence.xml file results in a warning message stating that multiple persistent unit is not supported.

Symptom

If multiple persistent units are defined in persistence.xml in Rational Application Developer v7.5, the following warning message appears when opening persistence.xml in the Editor:

"Multiple persistence units defined - tooling only supports 1 persistence unit per project."

Image:


Here is the example code:


<persistence-unit name="testjpa" transaction-type="JTA">

<jta-data-source>jdbc/istobankderby</jta-data-source>

<class>entities.Account</class>

<class>entities.Customer</class>

<class>entities.Transactions</class>

</persistence-unit>

<persistence-unit name="testjpa1" transaction-type="JTA">

<jta-data-source>jdbc/sampledb2</jta-data-source>

<class>entities.Department</class>

</persistence-unit>

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"J2EE Tooling","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
23 June 2018

UID

swg21413161