更新我的 grails 应用程序的安全插件后,部署到 tomcat 时出现以下错误:
2012-01-17 09:13:04,970 [pool-2-thread-1] 错误 context.ContextLoader - 上下文初始化失败 org.springframework.beans.factory.access.BootstrapException:执行引导程序时出错;嵌套异常是 org.codehaus.groovy.runtime.InvokerInvocationException:groovy.lang.MissingMethodException:没有方法签名:静态 org.example.SecRole.findByAuthority() 适用于参数类型:(java.lang.String) 值:[ ROLE_USER]
通过运行应用程序进行测试时,该应用程序运行良好。
SecRole 类已由 spring 安全插件自动生成。
在使用旧版本的 spring security 插件时,我之前已经在同一台服务器上部署了该应用程序而没有问题。
几个小时以来一直在敲我的头。非常感谢的想法。