After upgrade to Play 2.5.0: java.lang.RuntimeException: There is no started application
<p>I tried to update my app to Play 2.5.0. All tests with <code>OneAppPerTest</code> don't run anymore. The app does not run anymore either. I can start the app with <code>sbt run</code>, but my first request brings the same error message:</p>

<pre><code>java.lang.RuntimeException: There is no started application.  
</code></pre>

<p>I do have a mix with DI and traits and it works properly in play 2.4.6.
I have no clue where to search now. Does anybody has the same problems?</p>

<pre><code>Error injecting constructor, java.lang.RuntimeException: There is no started application
  at com.myproject.controllers.MyController.&lt;init&gt;(MyController.scala:30)
  at com.myproject.controllers.MyController.class(MyController.scala:30)
  while locating com.myproject.controllers.MyController
    for parameter 7 at router.Routes.&lt;init&gt;(Routes.scala:79)
  while locating router.Routes
  while locating play.api.inject.RoutesProvider
  while locating play.api.routing.Router
    for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.&lt;init&gt;(HttpRequestHandler.scala:200)
  while locating play.api.http.JavaCompatibleHttpRequestHandler
  while locating play.api.http.HttpRequestHandler
    for parameter 4 at play.api.DefaultApplication.&lt;init&gt;(Application.scala:220)
  at play.api.DefaultApplication.class(Application.scala:220)
  while locating play.api.DefaultApplication
  while locating play.api.Application
Caused by: java.lang.RuntimeException: There is no started application
        at scala.sys.package$.error(package.scala:27)
        at play.api.Play$$anonfun$current$1.apply(Play.scala:86)
        at play.api.Play$$anonfun$current$1.apply(Play.scala:86)
        at scala.Option.getOrElse(Option.scala:121)
        at play.api.Play$.current(Play.scala:86)
        at com.myproject.model.dao.DAOSlick$class.dbConfig(DAOSlick.scala:11)
        at com.myproject.controllers.MyController.dbConfig$lzycompute(MyController.scala:30)
        at com.myproject.controllers.MyController.dbConfig(MyController.scala:30)
        at play.api.db.slick.HasDatabaseConfig$class.driver(DatabaseConfigProvider.scala:142)
        at com.myproject.controllers.MyController.driver$lzycompute(MyController.scala:30)
        at com.myproject.controllers.MyController.driver(MyController.scala:30)
        at com.myproject.controllers.MyController.driver(MyController.scala:30)
        at com.myproject.model.dao.JavaTimeMapper$class.$init$(JavaTimeMapper.scala:20)
        at com.myproject.controllers.MyController.&lt;init&gt;(MyController.scala:30)
        at com.myproject.controllers.MyController$$FastClassByGuice$$b68ea36a.newInstance(&lt;generated&gt;)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
</code></pre>

<p>Here is my DAOSlick Trait, which is using the deprecated <code>Play.current</code>:</p>

<pre><code>import play.api.Play
import play.api.db.slick.DatabaseConfigProvider
import slick.driver.JdbcProfile

trait DAOSlick {
  protected lazy val dbConfig = DatabaseConfigProvider.get[JdbcProfile]("default")(Play.current) // this is line 11, where it fails
  protected val driver: JdbcProfile
  import driver.api._
}
</code></pre>

<p>Here is the head of "MyController":</p>

<pre><code>@Singleton
class WebsocketController @Inject() (redis: RedisService, notificationService: NotificationService) extends SecuredController with SomeService {
</code></pre>

<p>Both, the injected Service <code>NotificationService</code> and the Trait <code>SomeService</code> are extending the DAOSlick Trait.</p>

<p>Can anybody give me a hint, how to change the dependency in my <code>DAOSlick</code> to <code>Play.current</code>, please?</p>