title: Does spring-security 3.1 support spring-security-oauth (for oauth2)? Is there a reference?
body: <p>I am working with an app that uses spring-security 3.0 and oauth2 using spring-security-oauth-1.0.0.M3.  It works fine.  But it looks like migrating to spring-security 3.1 will not be trivial.  I have been unable to find confirmation that the oauth module is still supported.</p>
  
  <p>For example, the oauth tutorial mentions 3.0 not 3.1:</p>
  
  <p><a href="https://github.com/SpringSource/spring-security-oauth/wiki/tutorial" rel="nofollow">https://github.com/SpringSource/spring-security-oauth/wiki/tutorial</a></p>
  
  <p>And I have encountered a problem similar to the Mar 4, 2012 comment in the following discussion when I attempt to do a straight upgrade to 3.1 using spring-security-oauth 1.0.0.M3 or M4:</p>
  
  <p><a href="http://code.google.com/p/spring-security-social/wiki/Usage" rel="nofollow">http://code.google.com/p/spring-security-social/wiki/Usage</a></p>
  
  <p>Specifically I see this in the Tomcat logs:</p>
  
  <pre><code>org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration
  problem: Failed to import bean definitions from URL location ...
  Offending resource: class path resource [spring/applicationContext.xml]; nested
  exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
  exception parsing XML document from URL ...; nested exception is
  org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class
  [org.springframework.security.oauth2.config.OAuth2SecurityNamespaceHandler] for namespace
  [http://www.springframework.org/schema/security/oauth2]: problem with handler class file or
  dependent class; nested exception is java.lang.NoClassDefFoundError:
  org/springframework/security/web/util/AntUrlPathMatcher
  </code></pre>
  
  <p>Can someone suggest a solution to the above problem, or point to a reference for using spring-security 3.1 and spring-security-oauth, or else suggest a better alternative to implement oauth2 using spring-security 3.1?</p>
  
  <p>Or if I'm missing a fundamental point of spring-security 3.1, that would also be useful to know.</p>
  
  <p>Thanks!</p>