I am using spring oauth2.. following is my spring-security.xml
The tokenStore is pointing to the wrong class.
Try using
<bean id="tokenStore" class="org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore" />