title: Call to j_spring_security_logout not working
body: <p>I'm trying to setup the logut of my application with j_spring_security_logout but for some reason it's not working, I keep getting a 404 error.</p>
  
  <p>I'm calling the function like this:</p>
  
  <p><code>&lt;a href="&lt;c:url value="/j_spring_security_logout"/&gt;"&gt;&lt;img border="0" id="logout" src="./img/logout.png" /&gt;&lt;/a&gt;</code></p>
  
  <p>I have in WebContent/jsp/ my application main page, and the login and logout pages are in WebContent/login/.</p>
  
  <p>I've also checked this other post <a href="https://stackoverflow.com/questions/3068637/problem-with-spring-securitys-logout">Problem with Spring security's logout</a> but the solution given there is not working for me.</p>
  
  <p>Here you can see my web.xml</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
      &lt;filter-class&gt;
       org.springframework.web.filter.DelegatingFilterProxy
      &lt;/filter-class&gt;
  &lt;/filter&gt; 
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>And here my spring-security.xml</p>
  
  <pre><code>&lt;http auto-config="true"&gt;
      &lt;intercept-url pattern="/*" access="ROLE_USER" /&gt;
      &lt;form-login login-page="/login/login.jsp" 
                  authentication-failure-url="/login/errorLogin.jsp"/&gt;
      &lt;logout logout-success-url="/" logout-url="/login/logout.jsp" /&gt;
  &lt;/http&gt;
  
  &lt;beans:bean id="myAuthenticationProvider" 
      class="myapp.web.authentication.WSAuthenticationProvider"&gt;
  &lt;/beans:bean&gt;
  
  &lt;authentication-manager&gt;
      &lt;authentication-provider ref="myAuthenticationProvider"/&gt;
  &lt;/authentication-manager&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>