java.lang.IllegalStateException: ApplicationEventMulticaster not initialized

I'm getting the following error when trying to run a project with spring and spring-security (it was running before I added spring security):

java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Wed Nov 30 10:49:27 CST 2011]; root of context hierarchy
    at org.springframework.web.context.ContextLoader.closeWebApplicationContext(
    at org.springframework.web.context.ContextLoaderListener.contextDestroyed(
    at org.apache.catalina.core.StandardContext.listenerStop(
    at org.apache.catalina.core.StandardContext.stop(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.core.StandardService.start(
    at org.apache.catalina.core.StandardServer.start(
    at org.apache.catalina.startup.Catalina.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(

Does anyone know why? I haven't found anything on the interverse.. here's my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns=""
    <http use-expressions="true">
        <intercept-url pattern="/login" access="permitAll" />
        <intercept-url pattern="/**" access="isAuthenticated()" />
        <form-login login-page="/login" />
            <password-encoder hash="md5"/>
                <user name="rod" password="a564de63c2d0da68cf47586ee05984d7" authorities="ROLE_SUPERVISOR, ROLE_USER, ROLE_TELLER" />
                <user name="dianne" password="65d15fe9156f9c4bbffd98085992a44e" authorities="ROLE_USER,ROLE_TELLER" />
                <user name="scott" password="2b58af6dddbd072ed27ffc86725d7d3a" authorities="ROLE_USER" />
                <user name="peter" password="22b5c9accc6e1ba628cedc63a72d57f8" authorities="ROLE_USER" />

You'll notice it's similar to the tutorial. I've heard this issue might be a bug? Also as far as I know I've added the necessary jars and configuration.. but that might be an issue too. Finally I'm using spring-beans-3.1.xsd and spring-security-3.0.xsd because those match the major/minor version of the jars I have.


add to your pom.xml. This will solve the problem


Need Your Help

How to add function/method with ref parameter to Dicitonary-object?

c# function dictionary methods reference

To avoid a bigger switch-case-block, I would like to add (anonymous) functions or methods to a Dictionary. There are already alot explanations to that process. However, the functions/methions I am ...

How does erlang serialize data to disk?


Erlang does not have fixed sized integers such as 32-bit or 64-bit sized. What is the library call to write say an integer to disk in a binary representation? And what is that binary representation?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.