Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mysql DB with Grails application integration

 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to Grails/Groovy and doing a feasibility analysis for our application migration from java. When I test with grails application with mysql database, even after all the necessary configurations done it says mysql-connector-jar is missing and not able find.
1) I've configured in BuildGroovy.Groovy as run time dependency and with DataSource.groovy.
2) Placed correct mysql connector jar under grails application's /lib/ directory and added in class path also.

Tried with changing of different versions of jar's but no luck.


 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And it was always searching for version 5.1.6 of mysql connector jar. Don't know where it is referring but mentioned in the run time dependency as 5.1.18.
 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Super. I did changes of including jar's of mysql connector version 1.5.18 as I mentioned in the BuildGroovy.Groovy and 1.5.6 since one of the other plugin jul-to-slf4j needs it. I started the server by the time I posted previous things. Now it works fine. Thanks.

But the strange thing is why it is referring the other lower version even I've configured latest. It should take it from the class path of grails application. I'm using groovy 1.8.6, Grails 2.0.3 in SpringSource Tool Suite 2.9.1.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic