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 :
Now my controller has the following mapping :Code:<servlet-mapping> <servlet-name>dispatcherServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
In my web.xml file I set the following auth-constraints :Code:@RequestMapping(value = { "/", "/login" })
[CODE]<security-constraint>
<web-resource-collection>
<url-pattern>/*</url-pattern>
</web-resource-collection>[CODE]
Now every two/three logins I have the following error :
What is really strange is the composition of the erroneous URL : /privman is the context of my web app.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'
Thanks for your help


Reply With Quote
