pankaj
pankaj

Reputation: 1733

Referenced bean 'org.springframework.security.securityContextSource' not found

I am configuring spring security ldap. But in spring-security.xml, m getting this warning

Referenced bean 'org.springframework.security.securityContextSource' not found

on <security:authentication-manager> line

Can anyone tell me, what can be the problem???

Upvotes: 0

Views: 1448

Answers (2)

cabbagery
cabbagery

Reputation: 919

In addition to the dependency requirement, make sure your ldap.xml configuration file (in which I expect your bean is actually declared) is referenced in web.xml, but from the sounds of things, Michael's answer is probably correct.

Upvotes: 0

Michael
Michael

Reputation: 10319

Please ensure you have in dependencies spring-ldap-core. Example for 3.1.3

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-ldap</artifactId>
    <version>3.1.3.RELEASE</version>
</dependency>

Upvotes: 1

Related Questions