users@glassfish.java.net

Re: persistence.xml file

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 May 2008 06:52:07 PDT

Hello,

I do have the same problem but i used the Oracle backend

My persistence.xml file as follow:

<?xml version="1.0" encoding="windows-1252" ?>
<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"
             xmlns="http://java.sun.com/xml/ns/persistence"
             version="1.0">
  <persistence-unit name="Chapter03-Unit">
    <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
    <jta-data-source>jdbc:/wineappDS</jta-data-source>
    <class>com.apress.ejb3.ch03.Address</class>
    <class>com.apress.ejb3.ch03.Customer</class>
    <class>com.apress.ejb3.ch03.CustomerOrder</class>
  </persistence-unit>
</persistence>


But when I deploy it will display the following error at server log:

[#|2008-04-30T21:25:33.812+0800|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=4aa27c16-fd44-4505-a611-80321b149252;|javax.naming.NameNotFoundException: wineappDS not found
java.lang.RuntimeException: javax.naming.NameNotFoundException: wineappDS not found


Thanks and regards,
Jeff
[Message sent by forum member 'ncjt98' (ncjt98)]

http://forums.java.net/jive/thread.jspa?messageID=273135