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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>