aspose file tools*
The moose likes Groovy and the fly likes Mysql DB with Grails application integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Mysql DB with Grails application integration" Watch "Mysql DB with Grails application integration" New topic
Author

Mysql DB with Grails application integration

Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

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.



No pain, No gain.
OCJP 1.6
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

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

Joined: Jul 05, 2008
Posts: 166

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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mysql DB with Grails application integration