0

我正在运行 grails 2.2,并且正在努力让 SAML 集成正常工作。

我正在使用的 grails saml 插件是

编译“:spring-security-saml:1.0.0.M20”

我一直在关注这个教程

https://www.wave-access.com/public_en/blog/2014/june/23/how-we-configured-saml-20-on-grails.aspx

在修复了许多小问题后,我让应用程序几乎可以运行

这是我在运行应用程序时遇到的完整错误

Configuring Spring Security SAML ...
Registering metadata key: ping and value: security/idp-local.xml
...finished configuring Spring Security SAML
ERROR context.GrailsContextLoader: Error initializing the application: Error creating bean with name 'samlAuthenticationProvider': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.UserDetailsService' to required type 'org.springframework.security.saml.userdetails.SAMLUserDetailsService' for property 'userDetails'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.UserDetailsService] to required type [org.springframework.security.saml.userdetails.SAMLUserDetailsService] for property 'userDetails': no matching editors or conversion strategy found
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlAuthenticationProvider': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.UserDetailsService' to required type 'org.springframework.security.saml.userdetails.SAMLUserDetailsService' for property 'userDetails'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.UserDetailsService] to required type [org.springframework.security.saml.userdetails.SAMLUserDetailsService] for property 'userDetails': no matching editors or conversion strategy found
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.UserDetailsService' to required type 'org.springframework.security.saml.userdetails.SAMLUserDetailsService' for property 'userDetails'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.UserDetailsService] to required type [org.springframework.security.saml.userdetails.SAMLUserDetailsService] for property 'userDetails': no matching editors or conversion strategy found
... 4 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [com.UserDetailsService] to required type [org.springframework.security.saml.userdetails.SAMLUserDetailsService] for property 'userDetails': no matching editors or conversion strategy found
... 4 more

我感谢对错误的任何见解。谢谢!

4

0 回答 0