I am working on a project using Spring 3, and Spring Security. My problem is with IoC container. Problem started when I wrote my own implementation of UserDetailsService>
I had the same problem. Although this can happen in many ways, in my case I was creating a new object, instead of using the autowired
one. i.e.:
private Service service = new ServiceImpl();
instead of:
@Autowired private Service service;
This was not in the Service using the Repository injection, but in a controller on top of that.