How to fix the No implementation for play.api.db.DBApi was bound. with play 2.8.13

330 Views Asked by At

we are upgrading the tech stack versions of my project due to log4j vulnerability. SBT 1.6.2, Scala 2.13.6, play_scala 2.8.13 I used below dependencies to connect database and I mentioned db configurations in application.conf file.Also using customApplicationLoader.scala file

    "com.typesafe.play" %% "play-slick" % "5.0.0",
"org.postgresql" % "postgresql" % "9.4-1206-jdbc42",
"com.typesafe.play" %% "play-slick-evolutions" % "5.0.0" % Test

   
import play.api.ApplicationLoader
import play.api.inject.guice.{GuiceApplicationLoader, GuiceApplicationBuilder}
class CustomApplicationLoader extends GuiceApplicationLoader {
override protected def builder(context: ApplicationLoader.Context): GuiceApplicationBuilder = {
super.builder(context).disableCircularProxies(true)
}
}

but I'm facing the below issue issue screen shot

How can I resolve this please suggest here. Thank you

1

There are 1 best solutions below

0
On

Thank you all, After adding libraryDependencies += "com.typesafe.play" %% "play-guice" % "2.8.15" dependency and adding below configurations in application.conf my issue resolved.

play.evolutions.enabled = false
play.evolutions.db.default.autoApply = true
play.modules.disabled += "play.api.db.evolutions.EvolutionsModule"