Just starting learning Grails. I want to use the spring security plugin so I copy the following in BuildConfig.groovy
plugins {
…
compile ':spring-security-core:2.0-RC4'
…
}
As stated here http://grails.org/plugin/spring-security-core.
After that, I do grails compile
so a message informs me that the plugin is correctly installed. Then I type grails s2-quickstart app.ejem Person Authority
and, again, all ok. but when I run the app I found the following errors:
|Loading Grails 2.4.3
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
...........
|Compiling 4 source files
..............................
|Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Error |
2014-08-11 18:02:51,924 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table person_authority drop constraint FK_7d2mdh76otecbaoaq5y9p12ar if exists
Error |
2014-08-11 18:02:51,935 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabla "PERSON_AUTHORITY" no encontrada
Table "PERSON_AUTHORITY" not found; SQL statement:
alter table person_authority drop constraint FK_7d2mdh76otecbaoaq5y9p12ar if exists [42102-176]
Error |
2014-08-11 18:02:51,936 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table person_authority drop constraint FK_kdi2d7ujicv663k0h6mv85jx3 if exists
Error |
2014-08-11 18:02:51,981 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabla "PERSON_AUTHORITY" no encontrada
Table "PERSON_AUTHORITY" not found; SQL statement:
alter table person_authority drop constraint FK_kdi2d7ujicv663k0h6mv85jx3 if exists [42102-176]
|Server running. Browse to http://localhost:8080/ejem
When I check the url all is ok but the logout controller that shows an error 405 page. All tables seems correct when I check /dbconsole, also if I setup some users in the Bootstrap.groovy file... Is this some kind of bug??
Regards.