Grrrr, spring-security!


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:

  1. Half-docs, Non-docs, and … docs
  2. Quick Advice for Spring users
  3. Java Surgery: Spring Injection of Other Beans’ Properties
  4. Yet another reason to appreciate IntelliJ IDEA…
  1. No comments yet.
(will not be published)

Powered by WP Hashcash


Rss Feed Tweeter button Linkedin button Digg button Stumbleupon button Youtube button