aspose file tools*
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring security: No bean named 'springSecurityFilterChain' is defined