my dog learned polymorphism*
The moose likes Spring and the fly likes Spring security: No bean named 'springSecurityFilterChain' is defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring security: No bean named Watch "Spring security: No bean named New topic
Author

Spring security: No bean named 'springSecurityFilterChain' is defined

Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
Hi all,

I have quite a problem with spring security.

Situation:

WEB.XML:


APPCONTEXT.XML:


ERROR:



My other services, dao, controllers are annotation based loaden by other xml files with an component scan...

Why am i getting this error?

Kind regards,
Thomas
Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
/solved
Eduardo Bueno
Ranch Hand

Joined: Jun 04, 2009
Posts: 155
Post the solution, it might be useful to others.
Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
i had different context files, the security configuration must be in my service context configuration
Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100
Thomas,

Doesn't matter, YOU CAN keep those files separate, just give the following in:



prefix can be say your project name for example and spring's the folder or package where your xml config resources might be ... that way all your bean definitions would be available, I think it is a good practice to keep security config separate ... just a thought.

Trilochan.

Addendum: This is in web.xml
Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
thanks i will sure check on this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring security: No bean named 'springSecurityFilterChain' is defined
 
Similar Threads
problem while integrating spring with hibernate in webapplicatin development
Unable to connect to database
Error getting Spring security 2 to set up in Spring 2.5
Error defining a bean. Please help
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class