Announcement Announcement Module
No announcement yet.
HTTP 404 The requested resource (/testapp//j_spring_security_check) is not available. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP 404 The requested resource (/testapp//j_spring_security_check) is not available.


    I am new to Spring and I am trying to use Spring Security for a simple
    (no Spring Framework for the app per se) webapp as a trial run. I think
    I am missing something basic in the below:

    $ cat security-app-context.xml
    <beans:beans xmlns=""

    <global-method-security pre-post-annotations="enabled" />

    <http auto-config="true" use-expressions="true">
    <intercept-url pattern="/index.jsp" access="permitAll" />
    <intercept-url pattern="/secure.jsp" access="isAuthenticated()" />
    <form-login login-page="/login.jsp"/>

    <user name="rod" password="koala" authorities="supervisor, teller, user" />
    <user name="dianne" password="emu" authorities="teller, user" />
    <user name="scott" password="wombat" authorities="user" />
    <user name="peter" password="opal" authorities="user" />

    $ cat web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <display-name>Spring Security Test Client</display-name>


    - Loads the root application context of this web app at startup.
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>

    <filter-class>org.springframework.web.filter.DelegatingFil terProxy</filter-class>



    $ cat login.jsp
    <div id="login_dialog" class="login_dialog">
    <form name="f" action="/testapp/j_spring_security_check" method="POST">
    <div id="user_name_login">
    <input autocapitalize="off" autocorrect="off" id="username" name="j_username" type="text"><br>

    <input id="password" name="j_password" type="password"><br>

    <label><input class="auto" id="remember_me" name="remember_me" value="1" type="checkbox"> Remember me on this computer</label><br>

    <input class="button" name="commit" value="Sign in" type="submit">

    Initially I didn't even define login-page (simply had <form-login />) but then I ran into a different issue
    of /testapp/spring_security_login not being found. Now with login.jsp, I see the login form but then when I
    submit the form I run into the 404 in regard to j_spring_security_check not being found.

    I would greatly appreciate any help/pointers.


  • #2
    Attached is the log. Any help is greatly appreciated.


    • #3
      I have the above issue in a CentOS 5.8 running Tomcat 5.5. I just now tried it on a Fedora 15 machine running Tomcat 6 and it works. However I have apps that need to run on the former platform. I would appreciate any info/ideas on what might be going wrong.