File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes No Persistence provider for EntityManager named..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "No Persistence provider for EntityManager named....." Watch "No Persistence provider for EntityManager named....." New topic
Author

No Persistence provider for EntityManager named.....

Gaya Georgieva
Greenhorn

Joined: Jan 02, 2009
Posts: 1
Hello, everybody,
a pleasant place you've got.
Here is my problem - I'm trying to fill a visual JSF table with entries from a table of a MySQL database. but I get the following exceptions:

javax.persistence.PersistenceException: No Persistence provider for EntityManager named BozickaPU: The following providers:
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.



at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at managers.PersonBean.getEM(PersonBean.java:19)
at managers.PersonBean.findThemAll(PersonBean.java:25)
at bozickawar.SessionBean1.updatePersons(SessionBean1.java:51)
at bozickawar.SessionBean1.init(SessionBean1.java:87)
at com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:350)

Any ideas?
[ January 02, 2009: Message edited by: Ga Ga ]
Srini Mutpur
Greenhorn

Joined: Mar 29, 2008
Posts: 24
Can you paste your persistence.xml


SCJP 1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61760
    
  67

"Ga Ga" and "Srini", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
No, "Srini M" is no better. Abbreviations like that are not acceptable; please correct your displayed name again.
Srini Mutpur
Greenhorn

Joined: Mar 29, 2008
Posts: 24
It is not able to find the Persistent unit with the name "BozickaPU".
Once check your persistence.xml, is there any persistent unit with the name "BozickaPU".
And make the changes accorndingly.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
No, abbreviations like "Srini Jcl" are not acceptable. Please go back to "my profile" and correct your displayed name.
 
wood burning stoves
 
subject: No Persistence provider for EntityManager named.....