Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

javax.persistence.PersistenceException: No Persistence provider

 
Ranch Hand
Posts: 33
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
 
    Bookmark Topic Watch Topic
  • New Topic