title: Spring Security Login issue
body: <p>I am new to Spring Security and have configured Spring Security in my Spring MVC application. </p>
  
  <p>After submission of login page, I am getting the following error</p>
  
  <p><code>The requested resource (/j_spring_security_check) is not available.</code></p>
  
  <p>I am not able to understand this behaviour.</p>
  
  <p>Please help.</p>
  
  <p><strong>spring-security.xml</strong></p>
  
  <pre><code>&lt;security:http auto-config="true" use-expressions="true" access-denied-page="/appln/denied"&gt;
      &lt;security:intercept-url pattern="/appln/login" access="permitAll" /&gt;
      &lt;security:intercept-url pattern="/appln/index" access="hasRole('ROLE_ADMIN')" /&gt;
      &lt;security:intercept-url pattern="/appln/run" access="hasRole('ROLE_ADMIN')" /&gt;
      &lt;security:intercept-url pattern="/appln/common" access="hasRole('ROLE_USER')" /&gt;
  
      &lt;security:form-login login-page="/appln/login"
                           authentication-failure-url="/appln/login?error=true"
                           default-target-url="/appln/run"
                           authentication-success-handler-ref="AuthHandlr" /&gt;
  
      &lt;security:logout invalidate-session="true"
                       logout-success-url="/appln/login" 
                       delete-cookies="JSESSIONID" /&gt;
  &lt;/security:http&gt;
  </code></pre>
  
  <p><strong>Web.xml</strong></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;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>