My grails 2.1.0 application was deployed and working in cloudfoundry, using the mysql service, yesterday I made some changes and after updating can’t get it to work again. I’ve made no changes in datasource.
By looking at tomcat logs, it looks like the database settings are not beeing overriden on deploy, as stated in the documentation , and there’s a exception with the message “Cannot create JDBC driver of class ‘com.mysql.jdbc.Driver’ for connect URL ‘jdbc:h2:prodDb;MVCC=TRUE'”.
I’m using Spring Groovy/Grails Tool Suite integration to deploy my application to cloudfoundry.
Thanks for any advice
Thanks for the time folks, just found that a conflict in svn had disabled the cloudfoundry plugin that overrides the datasource definition on deploy to the bound mysql service on cloudfoundry.
The JDBC URL is overriden by the plugin on deploy so when it’s working correctly it doesn’t matter that the URL does not match the mysql database that your application will use, in fact you can remove the URL altogether