Is 'derby.jar' referenced as part of the CLASSPATH for Spring?

If not, then it cannot find the embedded Derby driver ('org.apache.derby.jdbc.EmbeddedDriver') required to connect to an embedded Derby instance.



On Thu, Aug 13, 2009 at 7:23 AM, nagl <neeravagl@gmail.com> wrote:


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:

[code]<bean id="innerorgDataSource"
               <property name="transactionManager">
                       <ref local="jotm" />
               <property name="driverName">
               <property name="url">
<bean id="orgDataSource"
               <property name="dataSource">
                       <ref local="innerorgDataSource" />
               <property name="user">
               <property name="password">
               <property name="maxSize">

Following are the properties I am using for derby datasource:

[code]  org.apache.derby.jdbc.EmbeddedDriver

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
                        : No suitable driver found for

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.

View this message in context: http://www.nabble.com/Unable-to-create-derby-datasource-tp24954784p24954784.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.