Playback error at startup: no implementation for play.api.db. The database was linked

When I try to start the Play application (Play 2.5.4), I get the following error:

ProvisionException: Unable to provision, see the following errors: 1) No implementation for play.api.db.Database was bound. while locating play.api.db.Database for parameter 0 at ds.qb.manage.ManageQueryBuilder.<init>(ManageQueryBuilder.scala:30) while locating ds.qb.manage.ManageQueryBuilder for parameter 16 at router.Routes.<init>(Routes.scala:107) while locating router.Routes while locating play.api.inject.RoutesProvider while locating play.api.routing.Router for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.<init>(HttpRequestHandler.scala:200) while locating play.api.http.JavaCompatibleHttpRequestHandler while locating play.api.http.HttpRequestHandler for parameter 4 at play.api.DefaultApplication.<init>(Application.scala:221) at play.api.DefaultApplication.class(Application.scala:221) while locating play.api.DefaultApplication while locating play.api.Application 

Is this my database setup, any ideas? I have a definition twice because I access the database through both Slick and JDBC.

 play.db { # The combination of these two settings results in "db.default" as the # default JDBC pool: config = "db" default = "default" # Play uses HikariCP as the default connection pool. You can override # settings by changing the prototype: #prototype { # Sets a fixed JDBC connection pool size of 50 #hikaricp.minimumIdle = 50 #hikaricp.maximumPoolSize = 50 #} } db.default.driver=com.mysql.jdbc.Driver db.default.url="jdbc:mysql://localhost:3306/db2" db.default.username=root db.default.password=xxxxx db2 = { url = "jdbc:mysql://localhost:3306/db2" driver = com.mysql.jdbc.Driver connectionPool = disabled keepAliveConnection = true user=root password=xxxxxx } 

UPDATE

Build.sbt file:

 name := """myapp""" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion := "2.11.7" libraryDependencies ++= Seq( jdbc, cache, ws, "org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test ) libraryDependencies += "com.typesafe.slick" %% "slick" % "3.1.1" libraryDependencies += "com.typesafe.play" %% "play-slick" % "2.0.0" libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.18" libraryDependencies += "org.pivot4j" % "pivot4j-core" % "0.9" libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.1.0" // properties file libraryDependencies += "com.typesafe" % "config" % "1.3.0" libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.6.4" libraryDependencies += "log4j" % "log4j" % "1.2.14" resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases" // mondrian resolvers += "Pentaho Releases" at "http://repository.pentaho.org/artifactory/repo/" 
+5
source share

All Articles