On Thursday 15 May 2008 11:25:35 am pbarnes wrote:
> Ah, thanks Burt - this was my issue.
>
> I kind of 'glossed over' this note in my review of the "Upgrade"
> documentation, since *I* wasn't calling any part of Acegi security
> explicitly within my code (just using the defaults with requestMap via the
> manager).
>
> I had previously used the generators to create domain-auths and manager and
> thus I guess one of these generators created the LoginController (in
> addition to Logout, User, Role and Requestmap controllers) within my
> application. It was these auto-generated controller classes that were
> throwing the exception.
>
> Might I suggest adding to the upgrade documentation that these references
> need to be updated (or the controllers removed) BEFORE installing the
> plugin or else you'll receive compilation errors?
>
> Thanks again,
>
> Phil..
>
> burtbeckwith wrote:
> > AuthenticateService was moved to a package to allow usage in projects
> > that don't put everything in the default package. You'll need to add an
> > import for
> > it (org.grails.plugins.springsecurity.service.AuthenticateService).
> >
> > This is described in the upgrade page -
> >
http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >
> > Burt
> >
> > On Thursday 15 May 2008 10:41:33 am pbarnes wrote:
> >> Hi all,
> >>
> >> First thanks for the work on this plugin, I've had good success with the
> >> 0.2 version.
> >>
> >> I'm trying to upgrade a simple application to
0.3.0. I'm running a
> >> Grails-1.0.3-SNAPSHOT release (due to this bug:
> >>
http://jira.codehaus.org/browse/GRAILS-2689 ), in case that might make a
> >> difference.
> >>
> >> I'm also following the upgrade instructions here:
> >>
http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >>
> >> I followed the note to clear my scriptCache (for both 1.0.2 and
> >> 1.0.3-SNAPSHOT just in case ;), removed the current 0.2 version of the
> >> plugin (both .zip and exploded) and did the 'grails install-plugin
> >> acegi'.
> >> The plugin list cache is rebuilt and the plugin appears to start
> >> installation, but I'm immediately confronted with an error:
> >>
> >>
> >> [delete] Deleting directory
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >> [mkdir] Created dir:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >> [unzip] Expanding:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/grails-acegi-0.3.zip
> >> into /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >> Compiling plugin acegi-0.3 ... ...
> >> [mkdir] Created dir:
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >> [groovyc] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >> [javac] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/generated-java-
> >>sou rce/LoginController.java:19: cannot find symbol
> >> symbol : class AuthenticateService
> >> location: class LoginController
> >> public AuthenticateService getAuthenticateService() { return
> >> (AuthenticateService)null;}
> >>
> >> (followed by several more javac errors for everywhere
> >> AuthenticateService is referenced)
> >>
> >>
> >> Apparently the plugin's grails-app/services/AuthenticateService.groovy
> >> file
> >> is not added to the classpath?
> >>
> >> I'm guessing I missed a step somewhere... thoughts?
> >>
> >> Thanks in advance,
> >>
> >> Phil..
> >>
> >> Tsuyoshi Yamamoto wrote:
> >> > The Grails Acegi plugin team is pleased to announce the release of
> >> > version 0.3 of the plugin.
> >> >
> >> > The Acegi plugin simplifies the work involved in integrating Acegi
> >> > Security
> >> > into Grails applications. By combining a core configuration with
> >> > user-specified options and overrides, it creates a best-practice
> >> > configuration of Spring Security in any Grails application while
> >>
> >> allowing
> >>
> >> > developers to make config changes without having to deal with the
> >> > complexity
> >> > of using Spring Security directly.
> >> >
> >> > This release includes significant enhancements, including:
> >> > - upgrade to Spring Security 2.0
> >> > - new support for LDAP/ActiveDirectory logins, including the option
> >> > to store
> >> > roles in the database, infer them from LDAP group membership, or both
> >> > - new support for OpenID logins that integrate with your
> >> > application's domain
> >> > Users and Roles
> >> > - made more of the configuration user-configurable, e.g. filter,
> >>
> >> logout
> >>
> >> > handler, and role voter lists are now configurable - you can easily
> >> > add your
> >> > own, remove existing, or change the order
> >> > - new configuration attributes were added, including mail server port
> >> > and mail server JavaMailProperties to allow more control over mail
> >> > sending and to
> >> > allow usage of GMail SMTP
> >> > - GrailsUser is now an interface, and GrailsDaoImpl was reworked to
> >>
> >> make
> >>
> >> > subclassing or replacement easier to allow custom database user
> >> > loading - added full suite of unit and integration tests, and also
> >> > automated functional tests using WebTest
> >> > - new wrapper for Acegi events that calls optional
> >> > application-defined closures when events fire
> >> > - moved all classes to packages
> >> > - enhanced Ajax login support including a brief tutorial
> >> > - lots of updates to the documentation
> >> > (
http://grails.org/AcegiSecurity+Plugin)
> >> > - bug fix - bypassed DigestUtils for password encryption to allow use
> >>
> >> of
> >>
> >> > any
> >> > supported codec
> >> >
> >> > The plugin and source code are available for download here:
> >> >
> >> >
http://plugins.grails.org/grails-acegi/tags/RELEASE_0_3/
> >> >
> >> > For more information on the Grails Acegi plugin, visit the Grails wiki
> >> > page:
> >> >
> >> >
http://grails.org/AcegiSecurity+Plugin
> >> >
> >> > Feedback, suggestions for improvement and contributions are always
> >> > welcome.
> >> >
> >> >
> >> > Cheers!
> >> > ----------------
> >> > The Grails Acegi plugin team
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list, please visit:
> >> >
> >> >
http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email