http://localhost:9090/app/login2.xhtml @Controller @RequestMapping("/auth") public class LoginController { @RequestMapping(value = "/login", method = RequestMethod.GET) public String getLoginPage(@RequestParam(value="error", required=false) boolean error, ModelMap model) { return "login2.xhtnml"; } } spring org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:META-INF/spring-servlet.xml 1 spring /* http://localhost:9090/app/login2.xhtml WARN org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/app/login2.xhtml] in DispatcherServlet with name 'spring' spring /app/* http://localhost:9090/app/auth/login http://localhost:9090/app/app/auth/login spring /app/*