Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] setting up Eclipselink with Glassfish in Netbeans, tables not being created?

On 06/07/2008, at 10:28 PM, Mitesh Meswani wrote:

Glassfish V2 is aware of EclipseLink starting b32 of GlassFish V2.1. Please try with a GlassFish build after that ( #GlassFish_v2_1_branch) and things should work as you expect.

If you have to work with a GlassFish build older than that, ddl generation will happen when the first em from the PersistenceUnit being deployed is being created. If you are using container manged em, this will happen when you first call into the component where you have injected em.

thanks Mitesh, it is running :) I think it is also time for me to upgrade my glassfish too, turns out i am running an early build of v2...


Please note that ddl generation will also happen at first em creation time when the appserver is restarted.

Please note that in either case, you need not specify properties in pink, green and blue.


Lachlan Gregor wrote:

I would like to use Eclipselink with Glassfishv2 (using my IDE Netbeans)..

I have added the following jars from the lastest milestone


to my project classpath

and using the Netbeans persistence.xml tool I have also added a new Persistence Provider where I also pointed to these same jars (as well as all the other jars that come with the milestone), (also i have just tried using the jars from the plugins as well, but no dice)

my persistence.xml is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns=" " xmlns:xsi=""; xsi:schemaLocation=" ">
 <persistence-unit name="marktwo-ejbPU" transaction-type="JTA">
   <description>marktwo persistence.</description>
<provider>org.eclipse.persistence.jpa.PersistenceProvider</ provider>
     <property name="" value="SunAS9"/>
<property name="eclipselink.ddl-generation.output-mode" value="database"/>
     <property name="eclipselink.logging.level" value="FINEST"/>
     <property name="eclipselink.jdbc.password" value="hello"/>
     <property name="eclipselink.jdbc.user" value="root"/>
<property name="eclipselink.jdbc.url" value="jdbc:mysql:// localhost:3306/marktwo;create=true"/> <property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/> <property name="eclipselink.ddl-generation" value="drop-and- create-tables"/>

I have gone through this mailing list and found some hints (highlighted in blue from Tom @ < > that i was hoping to fix my problem however when i deploy my test app no database tables are being generated? I know i don't even need the stuff written in green, and pink ? but i have just tried to throw everything in?? (and have tried numerous combinations in between)

I have also tested this by changing back to the default Toplink and it all works : tables are created?

I am just wondering if I have missed a step that would be required to set this up?

Basically it is just not connecting with the database? no exceptions get throw nothing? also i even tried just shutting down the database and reploying ... nothing, still not even an exception? is there some crucial step that i have overlooked? do i need to reconfigure Glassfish to not use Toplink and now use Eclipselink?


ps. i am running osx 10.51, mysql 5, Glassfishv2RI, Netbeans 6.1, EclipseLink M1.0 pps. what is the difference in using the jars from the Install or from OSIG Plugins?


eclipselink-users mailing list

eclipselink-users mailing list

Back to the top