This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring security sample is not working? Please help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring security sample is not working? Please help." Watch "Spring security sample is not working? Please help." New topic
Author

Spring security sample is not working? Please help.

shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Hi,
Trying to run a very basic spring-security demo but not able to login into app. Seems to be a configuration issue but not able to figure it out. Please help.
I am using Spring 3.2 and Spring Security 3.1
For convenience, I have pasted the code below and attached as well. Hope it will help or please let me know in case of any other query.
The URL I am hitting is "http://localhost:8080/SpringSecurity/home". It is opening the automatic login form but even after providing the correct credentials (admin/password), it is coming on the same page again!!! I have attached log file for tomcat console. It contains log for Tomcat load as well as hitting the url and then login. Link for WAR is also given, in case you want to try.
UPDATE: Not able to attach here so uploaded on rapidshare.com Below are links:
http://rapidshare.com/files/146621860/security_log.txt
http://rapidshare.com/files/3127127598/pom.txt
http://rapidshare.com/files/3340242913/SpringSecurity.war


web.xml


Spring-MVC-servlet.xml


SpringSecurity-servlet.xml


HomeController.java



home.jps



Thanks.
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Problem should be jar/configuration only as I just updated for below working example and it also didn't work!!!
http://www.mkyong.com/spring-security/spring-security-hello-world-example/

I updated Spring core libraries to 3.2.3.RELEASE and Spring securities jar to 3.1.4.RELEASE. And it stopped working!!!

Still, I don't have any idea how to fix.
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
My bad. The problem was in the IE browser where I had highest security and I didn't test it in another browser.

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Spring security sample is not working? Please help.
 
Similar Threads
Wierd Case with Spring AOP
HTTP Status 404 - /j_spring_security_check
problem with spring security
Exception while running the Spring example
spring security 3.1 login not working.