Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Serlvet -Jpa integration getting error  RSS feed

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.i am trying to is integrate jpa into my servlets .i am posting my code as below:



i am getting following error
javax.persistence.PersistenceException: Exception [EclipseLink-4021] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException
Exception Description: Unable to acquire a connection from driver [org.apache.derby.jdbc.ClientDriver], user [] and URL [jdbc:derby:localhost:1527/sample;create=true]. Verify that you have set the expected driver class and URL. Check your login, persistence.xml or sessions.xml resource. The jdbc.driver property should be set to a class that is compatible with your database platform
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:derby:localhost:1527/sample;create=true
Error Code: 0

please need to ocmplete as early as possible .early suggestions are most welcomed..

Thanks in advance.


 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have taken the liberty of removing a bunch of stuff from your post that has nothing to do with the problem. The salient message is this:

No suitable driver found for jdbc:derby:localhost:1527/sample;create=true

Either you do not have the Derby JDBC driver in the classpath, or the URL is not correct. This page indicates that the latter is indeed the case.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!