Peter,
I uninstalled my jsecurity-0.3 plugin and installed the shiro-1.0-SNAPSHOT
plugin.
I am sure I have changed all the class referecences, taglibs, and name of the
security manager to point to the new plugin.
Also, from your earlier response to my post, I changed in Config.groovy
security.shiro.authentication.strategy = new
org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy()
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)
But when I remove the above line that sets the auth strategy from
Config.groovy, the app starts normally and seems to be working correctly.
My question is, if we need to change the authentication strategy to a
non-default value, or if you want to explicitly specify a auth strategy, how
do I get rid of the above exception.
I am on grails 1.1.1
Thanks
Vijay Kumar
Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is
prohibited.
If you receive this transmission in error, please notify us immediately by
e-mail
at [email protected], and delete the original message.
Your cooperation is appreciated.