I use Apache Shiro as the basis for testing my application. I followed the link http://www.grails.org/plugin/shiro and my application throws an exception:
There is no SecurityManager available for the calling code, either associated with org.apache.shiro.util.ThreadContext, or as a static singleton vm. This is the wrong application configuration.
java.lang.IllegalStateException: no SecurityManager available for the calling code, either associated with org.apache.shiro.util.ThreadContext, or as a static singleton vm. This is the wrong application configuration. at org.apache.shiro.SecurityUtils.getSecurityManager (SecurityUtils.java:115) at org.apache.shiro.SecurityUtils.getSubject (SecurityUtils.java:57) at br.netsoft.ShiroDbRealmTests.testAutenticarComDadosCorretal.giroroovalovroiro (shiro) junit.framework.Test $ run.call (Unknown source)
What can I do?
Lucas source share