The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 An Introduction to Java Persistence for Client-Side Developers
Subject:  No Persistence provider for EntityManager named sample
Date:  2007-03-26 09:04:03
From:  kishorepr
Response to: No Persistence provider for EntityManager named sample


I had a similar problem while I was running in a stand-alone application. I resolved it by ensuring that the classpath is set correctly and persistence.xml file must be placed in the META-INF folder ONLY. One more check is to ensure that the provider tag in the persistence.xml file is accurate. I had used oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.

 Feed java.net RSS Feeds