This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes problem adding basic spring security example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "problem adding basic spring security example" Watch "problem adding basic spring security example" New topic
Author

problem adding basic spring security example

lars wright
Greenhorn

Joined: Oct 19, 2010
Posts: 3
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.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem adding basic spring security example
 
Similar Threads
Exception while running the Spring example
Conflict with <mvc:annotation-driven/>
spring security 3.1 login not working.
problems with faces (myfaces and mojarr 2.1.7) and grails 2.03 incompatibility - need some assistanc
HTTP Status 404 - /j_spring_security_check