If you have any other references in your service, remove all of them and try simple with resourceResolver and it should work. I have seen this if there are some other reference which cannot be resolved is there in the service. If that works, then later you can add the other references gradually and ...