Announcement Announcement Module
Collapse
No announcement yet.
DispatcherServlet : Random 404 errors (no mapping found) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DispatcherServlet : Random 404 errors (no mapping found)

    Hi all,

    I have a really basic app which is configured to use container based authentication against an LdapRealm.
    This works fine, except that randomly, after a successfull login, the Dispatcher Servlet raises a 404 error telling that no mapping was found. A simple page refresh on the error page solves the problem !
    I did many searches and many tests without being able to solve the problem.

    My dispatcher servlet is configured as following :
    Code:
    <servlet-mapping>
      <servlet-name>dispatcherServlet</servlet-name>
        <url-pattern>/</url-pattern>
      </servlet-mapping>
    Now my controller has the following mapping :
    Code:
     @RequestMapping(value = {
                "/",
                "/login"
        })
    In my web.xml file I set the following auth-constraints :
    [CODE]<security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>[CODE]
    Now every two/three logins I have the following error :
    Code:
    14:44:47 |- WARN org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/privman/login] in DispatcherServlet with
    name 'dispatcherServlet'
    What is really strange is the composition of the erroneous URL : /privman is the context of my web app.

    Thanks for your help
Working...
X