I’ve been getting my little application ready to run in production, and after some hiccups, I’ve just been hitting a brick wall around booting up any service. Basically put, even copying the shopping-cart-java example, I’m just having issues where Guice comes up with an injection error for ServiceInfo not being constructable.
This does feel awkwardly similar to Guice unable to create injector, but I can assure you that the difference here being that this is now Java 11, it “runs fine” in development, but arriving at this miserable log that’s near useless leads me to believe there’s a fundamental problem with Guice injections for production with regards to the jar ordering for the classpath of the docker images.
Even now running with the app in development through IDE, these things work fine, but the moment I try to spin these up in a Docker environment, it feels as though the ordering of modules is just chaotically defined by the host os, leading to this sort of error.
Any advice on proceeding? I’m fairly confident in the problem, but short of manual dependency listing in a specific order, I’m not sure what to do next…