• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to create a derby datasource

 
neeravagl agl
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using spring framework to create datasource using xapool and jotm.
I want a configurable datasource for oracle and derby.
The following are the bean definitions I am using:



Following are the properties I am using for derby datasource:



Now when i am passing oracle properties for the placeholders the datasource is successfully created.
But when i switch to derby i get the following error.

java.sql.SQLException: Cannot get connection for URL
jdbc:derby:target/derby/luDB;create=true
: No suitable driver found for
jdbc:derby:target/derby/luDB;create=true

Now I am using Maven for dependencies and have made sure that derby is included in the dependency and its also clearly visible in the dependency graph in eclipse.
What else can be the issue. Please put in your suggestions.





 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What are the derby jars added to classpath ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic