• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Simple JPA Program using Eclipselink 1.1 in Eclipse

 
Greenhorn
Posts: 27
Eclipse IDE Oracle Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
users.java

usertester.java

persistence.xml


orm.xml

I have created a JPAProject in Eclipse and above are code files i have used but when i am trying to run i am getting following error.


so please help me out to solve the above issue
 
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Odd, the error says you did not set your jdbc properties, but you do seem to be setting them in your persistence.xml.

Ensure that you are using the persistence.xml that you think you are (in META-INF), and you don't have any old ones on your classpath. Maybe try to run it outside of Eclipse so you know exactly what is on your classpath. Also ensure you have your JDBC driver on the classpath, and check your log for other errors.
 
Pawan Choure
Greenhorn
Posts: 27
Eclipse IDE Oracle Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally I got it working.I create a a new JPA Project from Scratch and was still facing the same issue but finally got it working my changing the name of Database to MySQL.

user class

usertester class

orm.xml

persistence.xml
reply
    Bookmark Topic Watch Topic
  • New Topic