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 | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    Stack Overflow | 8 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