Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 318783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:36:05+00:00 2026-05-12T08:36:05+00:00

I am trying to create an Eclipse application that uses JPA for persistence. I

  • 0

I am trying to create an Eclipse application that uses JPA for persistence.
I am trying to use EclipseLink as my provider (more specific org.eclipse.persistence.jpa.PersistenceProvider) and Derby as my database.
Currently I have an Eclipse JPA Project that deals with all the database communication and defines the model entities. This product is being unit tested and it all works.

The idea is that my Eclipse application uses this project to get the model entities that it uses.
The problem is that as soon as I try to create an EntityManager, I get a “No Persistence provider” exception.

I have tried referencing the JPA project directly, or first exporting it to a jar and depending on that. Neither worked.

Now as far as I can guess, this either means that it does not see my persistence.xml or that the persistence provider is not in my classpath.

The persistence file is in the META-INF directory in the root of my jar, so hopefully it should be picked up. I have also added the following to the MANIFEST.MF of the application plugin:

 javax.persistence;bundle-version="1.99.0",
 org.eclipse.persistence.antlr;bundle-version="1.1.2",
 org.eclipse.persistence.asm;bundle-version="1.1.2",
 org.eclipse.persistence.core;bundle-version="1.1.2",
 org.eclipse.persistence.jpa;bundle-version="1.1.2"

This would hopefully cause the needed classes to be available.

Can anyone see what I am missing? Is there a way to see which of the two problems it might be? Is it one of these problems?

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:36:06+00:00Added an answer on May 12, 2026 at 8:36 am

    Note: the current wiki example is still deprecated (since August 2008…)

    You can see in their updated example a launcher (with list of relevant plugins)

    Their MANIFEST.MF looks like:

    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Application Plug-in
    Bundle-SymbolicName: org.eclipse.persistence.example.jpa.rcp.comics; singleton:=true
    Bundle-Version: 1.0.0
    Require-Bundle: org.eclipse.core.runtime,
     org.eclipse.ui,
     org.eclipse.persistence.jpa,
     system.bundle,
     org.eclipse.persistence.example.jpa.comics.model.annotated;bundle-version="1.0.0",
     javax.persistence;bundle-version="1.99.0",
     org.eclipse.persistence.antlr;bundle-version="0.1.0"
    Bundle-RequiredExecutionEnvironment: J2SE-1.5
    Bundle-ClassPath: .
    Import-Package: org.apache.derby.jdbc
    

    May be using that example could help you find what is incorrect in your application?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 222k
  • Answers 222k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Seems to be a programming error on my behalf. The… May 13, 2026 at 12:26 am
  • Editorial Team
    Editorial Team added an answer One idea would be to use the QueryExtender class to… May 13, 2026 at 12:26 am
  • Editorial Team
    Editorial Team added an answer You should avoid using thread blocking techniques like Monitor locks… May 13, 2026 at 12:26 am

Related Questions

I would like to create a new event-dispatch thread in Swing, and I'm having
I am currently trying to wrap my mind around Java EE 5. What I'd
I want to use the default XML editor (org.eclipse.wst.xml.ui) of Eclipse in an RCP
Edited: SOLUTION FOUND. This is strange and not the best solution, but I just

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.