"Could not find a suitable constructor" when extracted interface from my resource class with Jersey 2

Put the class level @Path on the implementation instead of the interface. Jersey is trying to instantiate the interface, which it can't.


To whoever reach this thread and the above wasnt the issue, in my scenario it was this :

"Please pay special attention to constructors annotated with @Inject. It is a common mistake to import com.google.Inject instead of javax.inject.Inject. Currently"

from here : https://github.com/jersey/jersey/issues/2390

that solved the issue ! :)