• 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

problem adding basic spring security example

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having trouble integrating the most basic of spring security examples into an app i've cloned off git and gotten to work ... here are the relevant files:

build.gradle



WEB-INF/web.xml


WEB-INF/spring/app-config.xml


WEB-INF/spring/mvc-config.xml



WEB-INF/spring/spring-security.xml



The error i get is:


if i simply blindly add:


I get the folloowing error:




If i remove all spring security related stuff, the app works fine. Any thoughts? Thanks in advance.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One other hting you can configure in your web.xml for the ContextLoaderListener is the location of your xml config files. with a <context-param> tag. Or you can put an applicationContext.xml file in the WEB-INF directory that imports your config files, and with that you won't need the <context-param>

I recommend looking at the Core Spring Framework documentation's Spring MVC section.

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic