title: java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context
body: <p>I'm using maven_spring 3.1.M2 + hibernate 3.5. Once I put the line <code>&lt;tx:annotation-driven /&gt;</code> in my applicationcontex xml file, the follwoing error will occur:</p>
  
  <pre><code>WARNING: Exception thrown from LifecycleProcessor on context close
  java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sat Jul 16 13:00:52 IST 2011]; root of context hierarchy
      at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:350)
      at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1033)
      at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)
      at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:534)
      at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)
      at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4721)
      at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5423)
          at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5402)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
  </code></pre>
  
  <p>What should I do to fix this?</p>