persistence@glassfish.java.net

JDO76607 and JDO76606 with Glassfish b48 and Toplink V2b17

From: Antonio Goncalves <antonio.mailing_at_gmail.com>
Date: Sat, 23 Sep 2006 15:48:54 +0200

Hi, I'm using Glassfish b48, Toplink (the version bundled with Glassfish)
and Derby.

I have a few Entity Bean with JPA annotation and when I deploy my .ear file,
DDL scrips are created and the database is ok. Fine.

I've tried to use the latest version of Toplink (V2b17) with Glassfish but
when I deploy my application I've got the following warnings:


[exec] Command deploy executed successfully with following warning messages:

[exec] JDO76607: Cannot drop tables for application petstore. The expected
DDL file drop.sql is not available.
[exec] JDO76606: Cannot create tables for application petstore. The expected
DDL file create.sql is not available.

Here is my persistence.xml file :

<?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="petstorePU">
        <jta-data-source>jdbc/petstoreDS</jta-data-source>
        <properties>
            <property name="toplink.platform.class.name"
                      value="
oracle.toplink.essentials.platform.database.DerbyPlatform"/>
            <property name="toplink.ddl-generation"
value="drop-and-create-tables"/>
            <property name="toplink.create-ddl-jdbc-file-name" value="
create.sql"/>
            <property name="toplink.drop-ddl-jdbc-file-name" value="drop.sql
"/>
        </properties>
    </persistence-unit>
</persistence>



Is there any changes with V2b17 that I should be aware off ?



Thanks,

Antonio Goncalves