title: How can I use j_spring_security_check
body: <p>I am using spring 3 + struts 2 + hibernate 3, following is my configuration:  </p>
  
  <pre><code>app-security:
     &lt;beans:import resource="datasource.xml"/&gt;
   &lt;http auto-config='true'&gt;
      &lt;intercept-url pattern="/CMS/login*" access="IS_AUTHENTICATED_ANONYMOUSLY"/&gt;
      &lt;intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" /&gt;
      &lt;form-login login-page='/CMS/login' default-target-url="/j_spring_security_check"/&gt;
    &lt;/http&gt;
    &lt;authentication-manager alias="authenticationManager"&gt;
   &lt;authentication-provider user-service-ref="userDetailsService"&gt;
  &lt;!--    &lt;password-encoder hash="md5"/&gt;--&gt;
    &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  &lt;/beans:beans&gt;
  datasource.xml:
  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;bean id="userDetailsService" 
        class="mo.cam.service.impl.UserDetailsServiceImpl"&gt;
    &lt;property name="dataSource" ref="dataSource"/&gt;
    &lt;property name="enableAuthorities" value="true"/&gt;
    &lt;property name="usersByUsernameQuery"&gt;
      &lt;value&gt;SELECT LOGIN, PASSWORD, 
             1 FROM USER_INFO WHERE LOGIN = ? 
      &lt;/value&gt;
    &lt;/property&gt;
    &lt;property name="groupAuthoritiesByUsernameQuery"&gt;
      &lt;value&gt;SELECT G.GROUP_ID, G.GROUP_NAME, P.NAME 
        FROM USER_INFO U
        JOIN USER_GROUP UG on U.USER_INFO_ID = UG.USER_INFO_ID
        JOIN GROUP G ON UG.GROUP_ID = G.GROUP_ID
        JOIN GROUP_PERMISSION GP ON G.GROUP_ID = GP.GROUP_ID
        JOIN PERMISSION P ON GP.PERMISSION_ID = P.PERMISSION_ID
        WHERE U.LOGIN = ? 
      &lt;/value&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
      &lt;bean id="dataSource"
          class="org.apache.commons.dbcp.BasicDataSource"&gt;
          &lt;property name="driverClassName"
              value="com.microsoft.sqlserver.jdbc.SQLServerDriver"&gt;
          &lt;/property&gt;
          &lt;property name="url"
              value="***"&gt;
          &lt;/property&gt;
          &lt;property name="username" value=""&gt;&lt;/property&gt;
          &lt;property name="password" value=""&gt;&lt;/property&gt; 
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>and then setup my login page, but system just show me that :
  no action is defined for /cms/j_acegi_security_check
  and I tried to set a break point at :mo.cam.service.impl.UserDetailsServiceImpl, but it won't break!
  why ?</p>