com.google.inject.CreationException: Unable to create injector, see the following errors: 1) No implementation for java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances) was bound. while locating java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances)

GitHub | rodricifuentes1 | 10 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

    Guice error running application on generated jar

    GitHub | 10 months ago | rodricifuentes1
    com.google.inject.CreationException: Unable to create injector, see the following errors: 1) No implementation for java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances) was bound. while locating java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances)

    Root Cause Analysis

    1. com.google.inject.CreationException

      Unable to create injector, see the following errors: 1) No implementation for java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances) was bound. while locating java.lang.Integer annotated with @com.github.racc.tscg.TypesafeConfig(value=server.instances)

      at com.myapp.infrastructure.conf.ServerConfig.<init>()
    2. com.myapp.infrastructure
      CommonModule.configure
      1. com.myapp.infrastructure.conf.ServerConfig.<init>(ServerConfig.java:15)
      2. com.myapp.infrastructure.CommonModule.configure(CommonModule.java:29)
      2 frames