• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic