PageNotFound: No mapping found for HTTP request with URI [../j_spring_security_check] in DispatcherServlet

I’m using spring-security-4.2.6v.

Issue that I face is, when I go to my login page and I enter valid credentials and submit, it throws 404 error and warning message:

WARN [PageNotFound] No mapping found for HTTP request with URI [/cilcache/j_spring_security_check] in DispatcherServlet with name 'DispatcherServlet'

Below you can see my configuration files and code.

spring-security-config.xml


xmlns:beans="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/security

http://www.springframework.org/schema/security/spring-security.xsd">






login-page="/login"

default-target-url="/admin"

login-processing-url="/j_spring_security_check"

authentication-failure-url="/login?login_error=1"

username-parameter="username"

password-parameter="password" />








https="#{configurationService.configuration.getProperty('tomcat.ssl.port')}"/>























spring-mvc-config.xml




xmlns:mvc="http://www.springframework.org/schema/mvc"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.1.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context-3.1.xsd

http://www.springframework.org/schema/mvc

http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

























Read More »

By: StackOverFlow - 6 days ago

Related Posts