This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
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 security issue

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


Good Morning to the World!!!

Hope everyone is doing good.

I started learning spring security. I created a sample application as mentioned in book and run the application in jetty server.
The application should ask for the username and password before displaying the "Hello World" content. But it is displaying the content directly without showing the login form.
At runtime it is picking applicationContext-security.xml eventhough it is configured in DD.
Please go through the code below:

HelloWorldServlet.java



web.xml


applicationSecurity-context.xml



This is a maven project which runs on the jetty server.

My doubt with the above code is I am making use of both annotations and xml (DD). Is this leading to confusion to compiler. Please suggest me where I'm mistaken.

Thank You to everyone for the help.

Thanks and Regards,
G.Sathish Kumar.

 
maheedar sand
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have solved the issue. The issue is with maven project structure.
Thank You for everyone for their time and patience.

Thanks and Regards,
G.Sathish Kumar
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic