users@glassfish.java.net

Re: Port 1527 error for JPA application using MySQL/Eclipse/Glassfish

From: <glassfish_at_javadesktop.org>
Date: Wed, 27 Jan 2010 01:46:33 PST

> emf =
> Persistence.createEntityManagerFactory("Axle8Project")

doesn't match

> <persistence-unit name="NaraProject"

I think you should use
    Persistence.createEntityManagerFactory("NaraProject")
instead. I think you can even omit the PU name, as long as you only have one PU in your persistence.xml.

For further reading: https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html
[Message sent by forum member 'matthiasfraass' (matthias.fraass_at_tricoder.net)]

http://forums.java.net/jive/thread.jspa?messageID=383212