title: Spring Security Log Out Failure http-bio-8080"-exec-5" java.lang.StackOverflowError
body: <p>I've seen a few examples of Spring's logout and it seems a bit abstract to me.  I have a link with the href="appcontext_path/auth/logout.html". The examples I've seen don't have a psychical logout.html in the auth folder.  So I'm assuming this is a behind the scenes task.  I want to be able to click a log out link that invalidates the session and any associated cookies and navigates to the login page (auth/login.html).  When I try the below config, I get a Exception in thread ""http-bio-8080"-exec-5" java.lang.StackOverflowError</p>
  
  <pre><code>&lt;global-method-security secured-annotations="enabled"&gt;
  &lt;/global-method-security&gt;
  &lt;http security="none" pattern="/javax.faces.resource/**" /&gt;
  &lt;http security="none" pattern="/services/rest-api/1.0/**" /&gt;
  &lt;http security="none" pattern="/preregistered/**" /&gt;
  &lt;http access-denied-page="/auth/denied.html"&gt;
      &lt;intercept-url
          pattern="/**/*.xhtml"
          access="ROLE_NONE_GETS_ACCESS" /&gt;
      &lt;intercept-url
          pattern="/auth/*"
          access="ROLE_ANONYMOUS" /&gt;
       &lt;intercept-url
          pattern="/registered/*"
          access="ROLE_USER" /&gt;
      &lt;form-login
          login-processing-url="/j_spring_security_check.html"
          login-page="/auth/login.html"
          default-target-url="/registered/home.html"
          authentication-failure-url="/auth/login.html" /&gt;
      &lt;logout logout-url="/auth/logout.html"
              logout-success-url="/auth/login.html" /&gt;
      &lt;anonymous username="guest" granted-authority="ROLE_ANONYMOUS"/&gt;
      &lt;remember-me user-service-ref="userManager" key="ddddd23aferq3f3qrf"/&gt;
  &lt;/http&gt;
  &lt;!-- Configure the authentication provider --&gt;
  &lt;authentication-manager&gt;
      &lt;authentication-provider user-service-ref="userManager"&gt;
              &lt;password-encoder ref="passwordEncoder" /&gt;
      &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  </code></pre>
  
  <p></p>