I have a Spring web application that is running just fine. I'm using JavaConfig, so there's not a lick of XML in the whole configuration. I'm trying to integrate Spring Security, but when I add a class that extends `AbstractSecurityWebApplicationInitializer` as directed by [this tutorial](http://docs.spring.io/spring-security/site/docs/3.2.x/guides/hellomvc.html), I get the following exception:

```
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:251)
...

```

Any idea how I can resolve this?