java - Play cannot resolve MySQL Driver -


i upgraded play 2.4 , whatever reason i'm unable load jdbc mysql driver. here have in build.sbt

librarydependencies ++= seq(   javajdbc,   cache,   javaws,   "mysql" % "mysql-connector-java" % "5.1.+",   evolutions  ) 

after refreshing (intellij) , running application, still receive following error

caused by: java.lang.classnotfoundexception: org.mysql.jdbc.driver

i've searched potential issues, haven't come across any. there bug sbt don't know about?

most (just shooting) have typo in application.conf - should be: com.mysql.jdbc.driver exact version (not org.mysql...)

db.default.driver=com.mysql.jdbc.driver db.default.url="jdbc:mysql://localhost/your_db_name?characterencoding=utf-8" db.default.user=your_login db.default.password=your_pass 

see here or in 2.4.x docs


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -