I'm having serious problems by trying to run this template project for setting up RESTful web services. I constantly get the exception
org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=ToDoService,parent=ToDoResource,qualifiers={}),position=-1,optional=false,self=false,unqualified=null,383253211)
I've read similar posts and most of them suggest using an AbstractBinder. I tried to do so by inserting a class
public class MyBinder extends AbstractBinder {
@Override
protected void configure() {
bind(DefaultToDoService.class).to(ToDoService.class);
}
}
but now I don't know where to register it. I tried to do so inside the RestConfiguration class which extends Application, but the register method does not exist there... the Jersey doc does not seem very clear on that subject. If you could give me a little help that could save me a lot of time!