persistence@glassfish.java.net

Re: JDO76607 and JDO76606 with Glassfish b48 and Toplink V2b17

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 25 Sep 2006 19:16:46 -0700

Hi Antonio,

It works correctly in my latest workspace, but you might want to wait
for v2b19 as we have just checked in some changes to the processing
logic.

thanks,
-marina

Marina Vatkina wrote On 09/25/06 10:57,:
> Hi Antonio,
>
> This is strange, and I need to test it further. But as a work around,
> please remove/comment out the toplink.xxx-ddl-jdbc-file-name properties,
> and it should be working.
>
> thanks,
> -marina
>
> Antonio Goncalves wrote:
>
>>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>
>>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
>><http://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
>>