You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Bill Tomlinson <bt...@north88.com> on 2002/03/19 17:18:42 UTC

Torque: Sun JDBC-ODBC Driver Unknown

I'm attempting to use the Sun JDBC-ODBC bridge driver with Torque and I'm
getting the following error:

Exception: Unknown JDBC driver: sun.jdbc.odbc.JdbcOdbcDriver: Check your
configu
ration file
java.lang.InstantiationException: Unknown JDBC driver:
sun.jdbc.odbc.JdbcOdbcDri
ver: Check your configuration file
        at org.apache.torque.adapter.DBFactory.create(DBFactory.java:223)

Here's the relevant portions of my config file:

torque.database.default=corpres
torque.database.corpres.driver=sun.jdbc.odbc.JdbcOdbcDriver
torque.database.corpres.url=jdbc:odbc:corpres
torque.database.corpres.username=nwuser
torque.database.corpres.password=xxxxxxx

And yes, I've set up the ODBC datasource with the "ansi nulls etc"
unchecked.

Additionally, I'm able to successfully query the database directly from the
program using the same driver name (using Class.forName(...), getConnection,
etc). So I don't see how it can be a classpath problem (which was my first
guess).

Also, I'm using Torque separately from Turbine.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>