No suitable driver for jdbc after upgrade from SoapUI Pro to Ready API
I recently upgraded from SoapUI Pro 5.1.2 to Ready API 1.5.0. I often use groovy to make MS SQL connections to run queries and update statements. After updating to Ready API, all of my groovy scripts are giving the error "No suitable driver found for jdbc:sqlserver://[my database]. I kept my SoapUI Pro install, so I can run either SoapUI or Ready API. My groovy scripts still work fine in SoapUI Pro.
I've tried copying the sqljdbc.jar file from the SoapUI\bin\ext folder to the Ready API\bin\ext folder. I've tried downloading the latest sqljdbc.jar file from Microsoft. I restart Ready API after each time I change the jar file. I've checked the JDBC settings in the Preferences. Everything looks correct.
I'm stumped. Anyone have any ideas?
I found a fix. I have to register the driver first at the top of my groovy script.
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "com.microsoft.sqlserver.jdbc.SQLServerDriver" )
Still makes me wonder if there's a configuration setting missing somewhere in my Ready API installation, since I don't appear to need this line when running my scripts in SoapUI Pro.