This doesn't appear to be a Spring Security issue. The error is coming from Grails - "Unknown entity: Role". This usually happens when there is a mismatch between the package name in a domain class (or other artifact) and the folder the file is in.
If you want the Role
class to be in the com.mypackage
package, make sure that the file is in grails-app/domain/com/mypackage/Role.groovy
. The names are case-sensitive too, so make sure that the folder and package names agree there too. Also, you probably didn't do this, but I've seen people make mistakes like creating a "com.mypackage" directory, putting the file in grails-app/domain/com.mypackage/Role.groovy
. Any of these problems will cause the mismatch that you're seeing.