Hi,
I have an issue deploying an ear containing an ejb and a war modules.
The ejb module uses a persistence unit that i configured through the
glassfish admin console but when i try to deploy the ear i have this message
in the server.log:
Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build
b60e-fcs (12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [<name>] failed.
Internal Exception: javax.persistence.PersistenceException: Exception
[TOPLINK-28010] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: PersistenceUnitInfo <name> has transactionType JTA,
but doesnt have jtaDataSource.
at
oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
... 44 more
Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28010]
(Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: PersistenceUnitInfo <name> has transactionType JTA,
but doesnt have jtaDataSource.
at
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:585)
... 43 more
Caused by: Exception [TOPLINK-28010] (Oracle TopLink Essentials - 2.1 (Build
b60e-fcs (12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: PersistenceUnitInfo <name> has transactionType JTA,
but doesnt have jtaDataSource.
at
oracle.toplink.essentials.exceptions.EntityManagerSetupException.jtaPersistenceUnitInfoMissingJtaDataSource(EntityManagerSetupException.java:172)
... 44 more
|#]
Here is my persistence.xml file content:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="
http://java.sun.com/xml/ns/persistence"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="<name>">
<jta-data-source>"jdbc-name-created-in-glassfish-console"</jta-data-source>
</persistence-unit>
</persistence>
Could you help me?
Valentin Jacquemin