aspose file tools*
The moose likes Object Relational Mapping and the fly likes Simple JPA pogram using EclipseLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Simple JPA pogram using EclipseLink" Watch "Simple JPA pogram using EclipseLink" New topic
Author

Simple JPA pogram using EclipseLink

Tom Franck
Greenhorn

Joined: May 19, 2012
Posts: 7
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

Joined: Oct 01, 2007
Posts: 553
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.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
Tom Franck
Greenhorn

Joined: May 19, 2012
Posts: 7
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

Joined: Jan 05, 2013
Posts: 1
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

Joined: Oct 01, 2007
Posts: 553
Ensure the MySQL JDBC jar is on your classpath, and accessible to EclipseLink.

 
 
subject: Simple JPA pogram using EclipseLink