• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple JPA pogram using EclipseLink

 
Tom Franck
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are my files:

persistence.xml


user.java

my main class (using the Vaadin framework)


Please help my out with this issue.
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eclipelink => eclipselink

You are missing an 's' in your properties.

You could also use the JPA standard "javax.jdbc..." properties instead of the old EclipseLink ones.
 
Tom Franck
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed it to eclipselink but it still doesn't work.



I checked the included libraries and mysql-connector-java-5.0.8-bin.jar is in there. Yet he seems to complain he can not find it.
 
ahlem tounsia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the same problem"the second one :
exception
javax.servlet.ServletException: javax.persistence.PersistenceException: Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Exception Description: Configuration error. Class [com.mysql.jdbc.Driver] not found"
And i want to knw have you find a solution for your problem i am in need to your help thanks for reply me
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ensure the MySQL JDBC jar is on your classpath, and accessible to EclipseLink.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic