Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA with J2SE

 
Mohammad Jaber
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What JDK are you using ? Sun Hotspot or IBM JDK?
-Debu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic