IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "JPA" Watch "JPA" New topic
Author

JPA

Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 47

hai all i have tried the sample demo application using netbeans for CRUD operation using JPA
but it returns error,i have tried many options but it produce error

my persistence .xml file will be


my tomcat server result:

Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader
context: /jsfjpa
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1fee6fc

Internal Exception: Exception [TOPLINK-30004] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: file:/D:/JSF-sample%20pgms/jsfjpa/build/web/WEB-INF/classes/
Internal Exception:
(1. cvc-complex-type.4: Attribute 'version' must appear on element 'persistence'.)
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3563

What tutorial are you talking about and what steps have you followed?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 47

Vijitha Kumara wrote:What tutorial are you talking about and what steps have you followed?


I tried to devlop basic cRUD operation in netbeans using JPA
I have changed the Persistence.xml based on persistence provider but nothing works!
kindly suggest ..
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3563

Here's a JPA tutorial with Netbeans you may work with.
 
 
subject: JPA
 
Threads others viewed
How I can use useUnicode=true&characterEncoding=UTF-8 parameters with JPA connection?
Please help me need urgent help on JPA connection
JPQL query tool not running
Do jnlp file updates itself
JPA: Translating Annotations to Metadata (orm.xml)
MyEclipse, The Clear Choice