[java ee programming] Re: JPA Controller Classes with Netbeans 6.5 and Glassfish

2009-01-30 Thread jps
assion! > Subject: [java ee programming] Re: JPA Controller Classes with Netbeans 6.5 > and Glassfish > > Hi, > > The persistence.xml seems fine. > > I can actually make the entity classes work by initializing them > explicitly with the following code in the class constructor, o

[java ee programming] Re: JPA Controller Classes with Netbeans 6.5 and Glassfish

2009-01-29 Thread Constantine J Coutsoukes
ehalf Of jps Sent: Thursday, January 29, 2009 3:29 PM To: Java EE (J2EE) Programming with Passion! Subject: [java ee programming] Re: JPA Controller Classes with Netbeans 6.5 and Glassfish Hi, The persistence.xml seems fine. I can actually make the entity classes work by initializing them expli

[java ee programming] Re: JPA Controller Classes with Netbeans 6.5 and Glassfish

2009-01-29 Thread jps
Hi, The persistence.xml seems fine. I can actually make the entity classes work by initializing them explicitly with the following code in the class constructor, or elsewhere, before using the emf and utx: ... if(emf==null) { emf = Persistence.createEntityManagerFact

[java ee programming] Re: JPA Controller Classes with Netbeans 6.5 and Glassfish

2009-01-28 Thread Constantine J Coutsoukes
This is just a guess but check your persistence.xml and make sure it is correct. Specifically the jta-data-source. -Original Message- From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of jps Sent: Wednes