I am using spring oauth2.. following is my spring-security.xml
The tokenStore is pointing to the wrong class.
Try using