Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic