Hi,
I have written a Play module that is included in the main app as a dependency. My module also provides some custom routes. This however seems to confuse the dependency injection mechanism, resulting in a `com.google.inject.ProvisionException`.
In development mode, it fails injecting the application's controllers:
ProvisionException: Unable to provision, see the following errors:
1) No implementation for services.Counter was bound.
while locating services.Counter
for parameter 0 at controllers.CountController.<init>(CountController.scala:17)
while locating controllers.CountController
for parameter 2 at router.Routes.<init>(Routes.scala:43)
while locating router.Routes
while locating play.api.inject.RoutesProvider
In production mode, it cannot bind the module's named actors.
When I rename the module's module.routes to routes, it works, but the module's routes override the application's routes.
I couldn't find any hint to this in the documentation, it only refers to SBT submodules, not to dependencies.
Thanks for any hint,
- Marius