com.google.inject.CreationException: Unable to create injector, see the following errors: 1) Could not find a suitable constructor in controllers.AppController. Classes must have either one (and only one) constructor annotated with @Inject or a zero- argument constructor that is not private.

Stack Overflow | CodeTest | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Play framework 2.5 app in production in docker container is throwing errors on startup

    Stack Overflow | 6 months ago | CodeTest
    com.google.inject.CreationException: Unable to create injector, see the following errors: 1) Could not find a suitable constructor in controllers.AppController. Classes must have either one (and only one) constructor annotated with @Inject or a zero- argument constructor that is not private.

    Root Cause Analysis

    1. com.google.inject.CreationException

      Unable to create injector, see the following errors: 1) Could not find a suitable constructor in controllers.AppController. Classes must have either one (and only one) constructor annotated with @Inject or a zero- argument constructor that is not private.

      at controllers.AppController.class()
    2. controllers
      AppController.class
      1. controllers.AppController.class(AppController.scala:18)
      1 frame