5.0 to 5.0.1 upgrade error: "Database driver is missing or specified incorrectly."

My 5.0 configuration worked fine until I upgraded to 5.1, when I get the following message when visiting the site after the upgrade:

Error on step: Waiting for a database server...

Database driver is missing or specified incorrectly.

Specified driver class: net.sourceforge.jtds.jdbc.Driver

My TeamCity runs on IIS and connects to a local SQL Server. Where do I find this setting and what is the correct value?

6 comments
Comment actions Permalink

By 5.1 did you actually mean 5.0.2? I think you forgot to copy jtds driver to WEB-INF/lib directory. JTDS is not bundled with TeamCity distribution and should be copied manually after the installation.

0
Comment actions Permalink

Sorry, I meant 5.0.1. So I need to copy the driver to WEB-INF/lib, but where do I copy it from? In the event that it is no longer there, where do I get it? Also, why did this never happen before?

Thanks for your help.

0
Comment actions Permalink

I think this driver was copied when TeamCity was installed for the first time. Please read our installation instructions: http://www.jetbrains.net/confluence/display/TCD5/Setting+up+an+External+Database#SettingupanExternalDatabase-MicrosoftSQLServer

0
Comment actions Permalink

I copied it to E:\Program Files\TeamCity\webapps\ROOT\WEB-INF\lib and verified that the database.properties file looks right, but I am getting the same result. I then tried configuring it incorrectly, specifying the driver name as foo, but the driver name in the error message remained the same. Do I have to restart the server or something?

0
Comment actions Permalink

Yes, you need to restart the server.


0
Comment actions Permalink

Thanks! No it works. Question answered.


0

Please sign in to leave a comment.