login link gets redirected
Posted: Sun Apr 20, 2014 9:21 am
I have configured Broadleaf demo site to run with tomcat server directly from eclipse not by using ant task. I tried to visit login, register and cart page but the link got redirected. Since in demosite for tomcat login page must be at /mycompany/login when i click on login link i get redirected to /mycompany/mycompany/login.
I tried to directly hit the link http://localhost:8181/mycompany/login but it also gets redirected/changed to http://localhost:8181/mycompany/mycompany/login. This same issue repeats on clicking register and cart link.
In logs i can see "No mapping found for HTTP request with URI [/mycompany/mycompany/login] in DispatcherServlet with name 'mycompany'".
In LoginController i can see request mapping as "@RequestMapping("/mycompany/login")".
Any pointer to where i can look for error.
I tried to directly hit the link http://localhost:8181/mycompany/login but it also gets redirected/changed to http://localhost:8181/mycompany/mycompany/login. This same issue repeats on clicking register and cart link.
In logs i can see "No mapping found for HTTP request with URI [/mycompany/mycompany/login] in DispatcherServlet with name 'mycompany'".
In LoginController i can see request mapping as "@RequestMapping("/mycompany/login")".
Any pointer to where i can look for error.