• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mysql DB with Grails application integration

 
Ranch Hand
Posts: 171
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

reply
    Bookmark Topic Watch Topic
  • New Topic