> However I am still getting the following error on startup
>
>      [exec] org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'shiroSecurityManager': Error setting property
> values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'modularAuthenticationStrategy' of bean class
> [org.apache.shiro.web.DefaultWebSecurityManager]: Bean property
> 'modularAuthenticationStrategy' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of the
> getter?
>      [exec]     at java.security.AccessController.doPrivileged(Native
> Method)

It's a bug. Line 118 of ShiroGrailsPlugin.groovy should read:

  authenticationStrategy =
application.config.security.shiro.authentication.strategy

In other words, the "modularAuthenticationStrategy" property was
renamed to "authenticationStrategy".

You can temporarily modify the plugin by creating (or editing) the
grails-app/conf/BuildConfig.groovy file and adding the line:

  grails.project.plugins.dir = "plugins"

This will install the plugin into the project's "plugins" directory
(which will be created) and then you can modify the
ShiroGrailsPlugin.groovy file directly.

Cheers,

Peter

Reply via email to