You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Rahmat Adnan <ra...@gmail.com> on 2007/05/26 16:17:56 UTC

JDBC Driver is not supported by DataSource

Hi,

I have a problem on running the bookstore application as described in
the tutorial. Everything seems fine (builds successful) until I reach
the execution of the bookstore.
It seems like the MySQL JDBC driver is not recognized. I've used 5.1.0
and 5.0.6 and both result in the same error.
I hope someone can help.

grtz,
Rahmat

*****************************************************
Error:

ra@ra-macbook:~/Torque/Tutorial/target$ java -cp
classes:lib/avalon-framework-4.1.4.jar:lib/commons-beanutils-core-1.7.0.jar:lib/commons-collections-3.1.jar:lib/commons-configuration-1.2.jar:lib/commons-dbcp-1.2.1.jar:lib/commons-lang-2.1.jar:lib/commons-logging-1.0.4.jar:lib/commons-pool-1.2.jar:lib/jcs-20030822.182132.jar:lib/mysql-connector-java-5.0.6.jar:lib/torque-3.3-RC2.jar:lib/village-2.0.jar
com.kazmier.Bookstore

May 26, 2007 3:09:44 PM
org.apache.torque.dsfactory.AbstractDataSourceFactory setProperty
SEVERE: Property: driver value: org.gjt.mm.mysql.Driver is not
supported by DataSource:
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS

*****************************************************
Torque propertie file:

torque.database.default = bookstore
torque.database.bookstore.adapter = mysql

#Using commons-dbcp
torque.dsfactory.bookstore.factory =
org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.bookstore.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.bookstore.connection.url =
jdbc:mysql://localhost:3306/bookstore
torque.dsfactory.bookstore.connection.user = user
torque.dsfactory.bookstore.connection.password = pwd

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: JDBC Driver is not supported by DataSource

Posted by Florian Hopf <ho...@synyx.de>.
Hi,

Rahmat Adnan wrote:
>
> ra@ra-macbook:~/Torque/Tutorial/target$ java -cp
> classes:lib/avalon-framework-4.1.4.jar:lib/commons-beanutils-core-1.7.0.jar:lib/commons-collections-3.1.jar:lib/commons-configuration-1.2.jar:lib/commons-dbcp-1.2.1.jar:lib/commons-lang-2.1.jar:lib/commons-logging-1.0.4.jar:lib/commons-pool-1.2.jar:lib/jcs-20030822.182132.jar:lib/mysql-connector-java-5.0.6.jar:lib/torque-3.3-RC2.jar:lib/village-2.0.jar
>
> com.kazmier.Bookstore
>
> May 26, 2007 3:09:44 PM
> org.apache.torque.dsfactory.AbstractDataSourceFactory setProperty
> SEVERE: Property: driver value: org.gjt.mm.mysql.Driver is not
> supported by DataSource:
> org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
>
Not sure if this could be the cause but you could try to use
|com.mysql.jdbc.Driver instead.|


Kind regards
Florian
||

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org