I've recently migrated a client site from an old Adobe CF shared hosting account to a Railo install on a Windows VPS. Everything is 64 bit.
We've worked through a few incompatibilities... but I'm stuck on a script we which uses an Access (.mdb) database to bulk-upload updates to several tables at once. We're using the JDBC-ODBC driver. Intermittently, but frequently, we get: "[Microsoft][ODBC Driver Manager] Invalid string or buffer length"
I don't think it's specific to Railo, other JDBC-ODBC users get this error with the JDBC-ODBC bridge and the 64 bit Access ODBC driver, e.g. https://forums.oracle.com/thread/2318875
I was hoping to try the newish UCanAccess JDBC driver for Access available here: http://sourceforge.net/projects/ucanaccess/ to skip the ODBC bridge driver.
I'm in over my head though... I'm not 100% sure where the JAR files go, nor what to use in the "Other - JDBC Driver" setup. And I'm not 100% if UCanAccess is 32 bit or 64 bit (or if that even matters for a JDBC driver).
I've tried:
- All the JAR files from the UCanAccess zip file were put into c:\railo\lib - there are multiple JARs, UCanAccess itself uses a few libraries.
- In the Other-JDBC driver setup:
-- Class: net.ucanaccess.jdbc.UcanaccessDriver
-- Connection String: jdbc:ucanaccess://C:\railo\tomcat\webapps\ROOT\data\client.mdb [actually, I've tried many variations on this]
When I enter these into the Railo datasource setup, I get:
"No suitable driver found for jdbc:ucanaccess://C:/railo/tomcat/webapps/ROOT/data/client.mdb"
And then for some reason the Class is automagically changed to: net.sourceforge.jtds.jdbc.Driver
We're on Railo 4.1.0.009 beta on Apache Tomcat/7.0.37 - started from the normal install bundle on the Railo site a couple months ago.
I'm not sure where to start debugging this. Railo and Tomcat and to a large extent, Java, are new to me.
How do I check to see if Railo (or Tomcat?) even sees UCanAccess JARs?
How can I test a JDBC connection outside of Railo?
Thanks,
Leonard