File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes JPA with J2SE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "JPA with J2SE" Watch "JPA with J2SE" New topic
Author

JPA with J2SE

Mohammad Jaber
Ranch Hand

Joined: Apr 10, 2006
Posts: 46
Hi ,
i am testing JPA under J2SE using IBM RAD 7 and toplink provider , i added the required jars including toplink-essensials.jar and toplink-essensials-agent.jar , and i configured the persistence.xml under META-INF folder , it keeps giving me :
Exception in thread "main" java.lang.NullPointerException
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:120)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
at test.Client.main(Client.java:11)

the same thing is working fine under JDeveloper !!! any hints , Thanks


OCP , SCJP 5.0
Debu Panda
author
Ranch Hand

Joined: Jan 21, 2007
Posts: 100
What JDK are you using ? Sun Hotspot or IBM JDK?
-Debu


Author: EJB 3 In Action (http://manning.com/panda)
 
IntelliJ Java IDE
 
subject: JPA with J2SE
 
Threads others viewed
How I can use useUnicode=true&characterEncoding=UTF-8 parameters with JPA connection?
what jars are needed for jpa using hibernate
JPA not working with EJB3
Persistence Exception
facing problem while trying to access db
IntelliJ Java IDE