I was looking for proper way how to recieve active/logged in user. I use Spring Security 3.1 with the same version of Spring MVC. The whole idea is based on this topic which was more commented in the article :
@ActiveUser annotation from the article
I completely follow the instructions but I still get this kind of error :
No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.core.userdetails.User.<init>()]
In my applicationContext.xml I have those three annotations which were not directly proposed by the author of
<context:annotation-config />
<context:component-scan base-package="my.package.*" />
<mvc:annotation-driven />
What could cause this kind of problem?