Unable to load class 'net.sourceforge.jtds.jdbc.Driver'

Hi,
I’ve just upgraded a project from Cuba-Platform v. 7.2.6 to v. 7.2.7.
When I run the Update database process next error appears:

Unable to get SQL instance
Unable to load class 'net.sourceforge.jtds.jdbc.Driver'

I’ve taken a look to idea.log file but I haven’t foun any clue.

I’d be very grateful if someone can help me with this problem.

Regards,

In a new CUBA project this JDBC driver is not being used anymore - instead the Microsoft JDBC driver is used.

Perhaps you could change to the Microsoft driver.

Br,
Torben

1 Like

Thanks, Torben, for the clue.

I hadn’t no idea why the problem appeared after Cuba-Platform upgrade but the suggestion got me the idea to setup again de main data store and, now, there isn’t any problem with de database connection.

Best regards,
Xavier

Hi,
When the Studio does platform version upgrade, it executes gradlew undeploy task which cleans all files from your development tomcat.

It could happen that if you lost project dependency on jtds somewhere in the past, but did not try to build and run the project anywhere in the clean folder after that, then you would see the effect in local dev environment only after platform version upgrade.

1 Like