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 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 ..