Open Jackyjjc opened 5 years ago
@Jackyjjc where did you do this call? JerseyGuiceUtils.reset();
@alexey-krylow sorry it has been a while since I submitted this issue. I don't remember where I made the call nor I still have the code. I believe I made the call in either dropwizard setup or run function.
My app builds the guice bundle in the following way:
The jersey resource is like this:
In the Guice module we have:
This is the error I get
It looks to me that jersey was trying to use HK2 injector rather than the Guice one when trying to inject the KCL class. It seems to be related to https://github.com/HubSpot/dropwizard-guicier/issues/13 but I'm not 100% sure. I can "fix" this issue by calling
However i have no idea if this will make other things not work. Is there a proper way to fix this?