spring-security-core:3.0.0.M1插件在grails 3.0.8中构建正常但不是3.1.0.RC1

时间:2015-12-27 07:27:17

标签: grails plugins spring-security

据我所知,spring-security-core:3.0.0.M1插件不在3.1.0.RC1中构建。

3.1.0.RC1堆栈跟踪状态

Unable to start embedded Tomcat 
FAILURE: Build failed with an exception
...        
* What went wrong:
Execution failed for task ':main:bootRun'.
> Process 'command '/opt/java/jdk1.8.0_60/bin/java'' finished with non-zero exit value 1

如果我按照Grails 3.1.0_M2 - Spring-Security-Core 3.0.0.M1 Error的建议包含3.2.9广告,3.1.0.RC1版本会提供不同的堆栈跟踪:

ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityProperties' defined in class path resource [org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.security.SecurityProperties]: Factory method 'securityProperties' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/config/http/SessionCreationPolicy
...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.security.SecurityProperties]: Factory method 'securityProperties' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/config/http/SessionCreationPolicy

2 个答案:

答案 0 :(得分:1)

https://github.com/grails-plugins/grails-spring-security-core/issues/401

和btw:spring-security-core-3.0.0已经发布。

答案 1 :(得分:-1)

上述解决方法适用于3.1.0.RC1中的spring-security-core:3.0.0插件。需要Requestmaps而不是staticRules的映射。