I just wasted a day trying to get Spring Security 3.0 to work – at all. Followed the documentation meticulously, only to endlessly have Spring tell me that I didn’t have a namespace handler for the security namespace.
Turns out it was a simple fix. I’d simply not included all three pieces of Spring Security.
If you’re using Maven, then, here’s what you’ll need for Spring Security:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${spring.version}</version>
</dependency>
I would love to find out why the configuration was pulled out and not a required element of Security…. assuming it’s not some wankster just letting his hand off the throttle.
Related posts: