Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
Messieurs-dames, As I could not find much clues about the right way to do it, here I come: I'm trying to get an EntityManagerFactory properly setup from the Persistence class, but I cannot get further than the following exception javax.persistence.PersistenceException: No Persistence provider

Programmatical EntityManagerFactory init

2007-04-06 Thread r1 Corporation
Messieurs-dames, As I could not find much clues about the right way to do it, here I come: I'm trying to get an EntityManagerFactory properly setup from the Persistence class, but I cannot get further than the following exception javax.persistence.PersistenceException: No Persistence provider

Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Michael Dick
Hi Erwan, What do you have in persistence.xml? It should contain something like this : persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0 persistence-unit name=teamplay_test . . . /persistence-unit

Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
Messieurs-dames, As I could not find much clues about the right way to do it, here I come: I'm trying to get an EntityManagerFactory properly setup from the Persistence class, but I cannot get further than the following exception javax.persistence.PersistenceException: No Persistence provider

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
: Friday, April 06, 2007 4:46 AM To: open-jpa-dev@incubator.apache.org Subject: Programmatical EntityManagerFactory init Messieurs-dames, As I could not find much clues about the right way to do it, here I come: I'm trying to get an EntityManagerFactory properly setup from the Persistence

Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
@incubator.apache.org Subject: Programmatical EntityManagerFactory init Messieurs-dames, As I could not find much clues about the right way to do it, here I come: I'm trying to get an EntityManagerFactory properly setup from the Persistence class, but I cannot get further than the following

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
: Friday, April 06, 2007 9:50 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Programmatical EntityManagerFactory init Thank you for your time Patrik, Actually the persistence.xml used in the META-INF jar in the CP points to another persistence unit name. The thing is -and I may

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
, 2007 10:08 AM To: open-jpa-dev@incubator.apache.org Subject: RE: Programmatical EntityManagerFactory init Could you (or anyone else) confirm this last point? Your are correct -- when using the Persistence class for bootstrapping, you must provide a name of a persistence unit defined

Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
, please immediately return this by email and then delete it. -Original Message- From: Patrick Linskey Sent: Friday, April 06, 2007 10:08 AM To: open-jpa-dev@incubator.apache.org Subject: RE: Programmatical EntityManagerFactory init Could you (or anyone else) confirm this last point