title: Error in shiro configuration in a Grails-app
body: <p>i'm using the Apache Shiro as the framework for athetication of my application. I was following the reference at <a href="http://www.grails.org/plugin/shiro" rel="nofollow noreferrer">http://www.grails.org/plugin/shiro</a>
  and my application throws the exception:</p>
  
  <p><strong>No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.</strong></p>
  
  <p>java.lang.IllegalStateException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
  at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:115)
  at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:57)
  at br.netsoft.ShiroDbRealmTests.testAutenticarComDadosCorretos(ShiroDbRealmTests.groovy:58)
  at junit.framework.Test$run.call(Unknown Source)</p>
  
  <p>What i can do?</p>