• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring - Maven Project

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
Iam new to Spring world. Have imported a new spring maven project from GIThub.

Exception:
When i try to run the application, iam getting the below error in my console.
No mapping found for HTTP request with URI [/bgx_fc_webapp/error/notauthorised] in DispatcherServlet with name 'Fashion'

Fashion-Servlet.xml:

Spring-Security.xml:


Web.xml:


ApplicationContext.xml:


It would be great if someone can help me out.

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well as the exception says /bgx_fc_webapp/error/notauthorised is not mapped to a Controller. The way you have mapped your XML is that all requests to your webapp will be routed to the DispatcherServlet. Unauthorizes requests will be redirected to error/notauthorised. SInce, DispatcherServlet servers error/notauthorised too, it;s coming back to DispatcherServlet and it is tryiong to find a controller to server the request

Generally you simply redirect authentication failures to a simple htm page.
 
Gokul Vijay
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried redirecting it to a simple htm page when error comes but still it didnt resolve the issue.Anyother thoughts on this issue.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic