Hello Joe, > I'm excited about using Shiro in my new Grails project ...
I can understand that. I also enjoyed my first Grails experiences very much. > Everything went great with my testing the plugin "grails install-plugin > shiro" > > But, now I want to customize Shiro so that I can use tables with Table and > Column names of my choosing. I never used the new Shiro plugin, only the older JSecurity plugin. But as Peter Ledbrook said he'd base the Shiro plugin on the JSecurity one, I guess things generally work the same way. > I got the source from "svn co > http://svn.apache.org/repos/asf/incubator/shiro/trunk/" > > So, I've executed "grails uninstall-plugin shiro" .... > > And I'm trying to get everything working again in the simple case before I > begin customizing, but I can't get beyond the following error ... I'd recommend to stick with the plugin until you get comfortable with JEE in general and Grails in particular. The plugin allows for custom table/column names. All you have to do is write your own realm. E.g. I generated the realm and domain classes using the plugin's quickstart command and then changed pretty much everything inside. > I've researched it some, but since I'm new to Grails and the environment ... What do you mean with "the environment"? Java Enterprise Edition (JEE, "server side java")? Or Grails? Or both? Or the full stack of frameworks employed by Grails (most important: Hibernate, and Spring Dependency Injection)? Coming from a PHP/CGI background, I still lack in-depth JEE knowledge, so I won't be any help here. Anyway, knowing wich part of "the environment" in particular causes you trouble will help us to help you out. > I'm not sure where the initialization of a SecurityManager should happen?? Generally you should try to take advantage of Spring Dependency Injection. I don't know, if that's how it's supposed to be done, but I'd configure the SecurityManager there. (Note: That's just my thoughts. I haven't tried it. I use the grails plugin so I don't have to think about such things.) For a grails project that would be the file resources.xml (or resources.groovy if you prefer Grails' Spring DSL) in the grails-app/conf/spring/ directory. Cheers, DJ
