473,782 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Persistence in a Desktop Application

myusernotyours
188 New Member
Hi all,

Am trying to create a Java Desktop App that uses Java Persistence in Netbeans.
The database is MS Access but I tried with Mysql and got the same error.
When I run the app( Create the entity manager), I keep getting the following...

Expand|Select|Wrap|Line Numbers
  1. Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named ReceiptingPU:  The following providers:
  2. oracle.toplink.essentials.PersistenceProvider
  3. oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
  4. Returned null to createEntityManagerFactory.
  5.  
  6.         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
  7.         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
  8.  
Here is the persistence.xml

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  3.   <persistence-unit name="ReceiptingPU" transaction-type="RESOURCE_LOCAL">
  4.     <provider>oracle.toplink.essentials.PersistenceProvider</provider>
  5.     <class>receipting.entities.Receipt</class>
  6.     <class>receipting.entities.Consumer</class>
  7.     <class>receipting.entities.Receipttransaction</class>
  8.     <class>receipting.entities.Users</class>
  9.     <properties>
  10.       <property name="toplink.jdbc.user" value="user"/>
  11.       <property name="toplink.jdbc.password" value="user"/>
  12.       <property name="toplink.jdbc.url" value="jdbc:mysql://localhost/watering"/>
  13.       <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
  14.     </properties>
  15.   </persistence-unit>
  16. </persistence>
I have the toplink library correctly in the class path. Any one with some light please?


Alex
Feb 24 '09 #1
0 2399

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1878
by: Frank Grimm | last post by:
Hi group, i'm looking for a Java persistence framework that is able to cope with changes of the class source, i.e. new/changed attributes and/or methods. Say you have an exported (persistent) instance of a old class version and want to reload it into a newly started program that uses a new version of the class. Is there some framework that can do the job or do i have a strange idea of what instance persistence realy is?
10
572
by: mail2deepa | last post by:
Hello, I want to know the difference between desktop application and intranet application. when to do desktop application and when intranet application. deepa
8
4718
by: Uttam | last post by:
Hello, I am currently in the process of developing an application in a pure desktop world using Access 2000. I am intending to convert this pure desktop application into a Client Server application with Access 2000 as the front end and the each of the following as the backend: 1) Oracle
4
3737
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current database for other application is SQL-SERVER. they have 12 users.
3
2297
by: ebbflow | last post by:
I've seen explainations on how to impersonate a non aspnet user when a web page is called within an web application, but I have a different impersonation issue. I have a windows desktop application (not a web app) that is used by our web administrator to control some of the web application's settings. It also has some troubleshooting features. One feature that I'd like is to verify that the aspnet user has some permissions to open some...
1
1824
by: Bartholomew Simpson | last post by:
I wrote a desktop application in C++ a little while ago, and I will like to port it to a web application. Here are the details: 1). ALL business logic is held in ANSI C++ libraries (e.g. I make extensive use of the BOOST C++ libraries) 2). The front end is written entirely in VB6 What I want to do is to is to be able to be able to have a choice of
2
7042
by: sezanawa | last post by:
Hi Guys, I am new to java deployment things. Specially for desktop applications. I used to work with J2EE and i did deployment only for web projects. Now i have developed a small desktop application. Its based on java swing. My application gonna serve on windows and linux systems. Now i want to deploy my application along with all libraries etc. Simply i dont know how to do that. I googled for such a thing but no success. Can i pack my...
1
1407
by: wenger | last post by:
java have the java persistence API for object-relational mapping between the java application and relational database, then why we still need the hibernate tools such as vp-uml and middlegen ??
2
2555
by: sukeshchand | last post by:
I have a java script function. i want to use the function in my vb.net desktop application. how ????
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.