users@glassfish.java.net

Persistence unit ref:

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Thu, 3 Dec 2009 23:16:50 +0000

Hello,

 

Below is my persistence.xml-

 

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" 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">
  <persistence-unit name="ENTERPRISE-ejbPU" transaction-type="JTA">
    <jta-data-source>jdbc_/EnterpriseDB2</jta-data-source>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
    </properties>
  </persistence-unit>
</persistence>

 

 

How do I find the name of my -persistence-unit-ref-name?

 

I use the following and I get deployment error

 

<persistence-unit-ref-name>ENTERPRISE-ejbPU</persistence-unit-ref-name>

 

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

 

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE

application.

 

Thanking you.

 

eve


                                               
_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/