Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.persistence.PersistenceException: No Persistence provider

 
Debajyoti Kundu
Ranch Hand
Posts: 30
1
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using eclipse ide for my project. I've configured the workspace to work with JSF and JPA.

I've used: eclipselink-2.3.0.jar, toplink-essentials.jar, toplink-essentials-agent.jar for JPA library. Persistence unit and provider are following(Same persistence unit name provided in EntityManagerFactory):

<persistence-unit name="EMS" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>

When I'm trying to out some data into database(via JSF page) with the mentioned configurations I get the following error:



HTTP Status 500 - javax.persistence.PersistenceException: No Persistence provider for EntityManager named EMS: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:

type Exception report

message javax.persistence.PersistenceException: No Persistence provider for EntityManager named EMS: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.persistence.PersistenceException: No Persistence provider for EntityManager named EMS: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Local Exception Stack:
Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader
context: /EMS
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@18420e86



I've checked the toplink-essentials.jar but oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider class is present there. Can anyone please help me with this error.

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic