I'm trying to use the driver I've dl'd here to reverse engineer my hibernate config files. I'm connecting to a sql server 2000 db and have the following key-value pairs in my property file:
hibernate.dialect = org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class = net.sourceforge.jtds.jdbc.Driver
hibernate.connection.url = jdbc:sqlserver://192.168.11.10:1433;forwardReadOnlyMethod=serverCursor
However when invoked Ant to run the hibernate tool I got the following output: [hibernatetool] org.hibernate.exception.JDBCConnectionException: Getting database metadata [hibernatetool] java.sql.SQLException: No suitable driver
And before I'm asked, yes the driver is in my <project root>/lib dir which is in my classpath.
Regards,
DM_Dad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Howdy,
I'm trying to use the driver I've dl'd here to reverse engineer my hibernate config files. I'm connecting to a sql server 2000 db and have the following key-value pairs in my property file:
hibernate.dialect = org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class = net.sourceforge.jtds.jdbc.Driver
hibernate.connection.url = jdbc:sqlserver://192.168.11.10:1433;forwardReadOnlyMethod=serverCursor
However when invoked Ant to run the hibernate tool I got the following output:
[hibernatetool] org.hibernate.exception.JDBCConnectionException: Getting database metadata
[hibernatetool] java.sql.SQLException: No suitable driver
And before I'm asked, yes the driver is in my <project root>/lib dir which is in my classpath.
Regards,
DM_Dad
Hi,
Your url is bad.
See http://jtds.sourceforge.net/faq.html#urlFormat
It should be: jdbc:jtds:sqlserver://192.168.11.10:1433
PS: I don't think (for hibernate reverse engineering) you should need "forwardReadOnlyMethod=serverCursor"
Regards,
Bruce