Sping的Sping安全性Saml Pingfederation集成中无法读取资源异常

时间:2018-07-27 05:58:41

标签: spring-security saml-2.0 spring-saml pingfederate

在我的Spring Web应用程序中,我使用的是Spring Security SAML Pingfederate。这是我的第一个Spring SAML应用程序。通过使用JNDI查找,我们可以获取路径,密码,密钥别名,元数据url和应用程序基本URL值。当我将应用程序部署到服务器时,它显示以下异常。

XmlWebApplica W org.springframework.web.context.support.XmlWebApplicationContext refresh Exception encountered during context initialization - cancelling refresh attempt
                             org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'samlFilter' while setting constructor argument with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlFilter' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Cannot create inner bean '(inner bean)#1abffede' of type [org.springframework.security.web.DefaultSecurityFilterChain] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1abffede': Cannot resolve reference to bean 'samlEntryPoint' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlEntryPoint': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.saml.SAMLEntryPoint.setWebSSOprofile(org.springframework.security.saml.websso.WebSSOProfile); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webSSOprofile': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.saml.websso.AbstractProfileBase.setMetadata(org.springframework.security.saml.metadata.MetadataManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.saml.metadata.CachingMetadataManager#0' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Cannot create inner bean 'org.springframework.security.saml.metadata.ExtendedMetadataDelegate#243bfe40' of type [org.springframework.security.saml.metadata.ExtendedMetadataDelegate] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.saml.metadata.ExtendedMetadataDelegate#243bfe40' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Cannot create inner bean 'org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider#5c40feda' of type [org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider#5c40feda' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider]: Constructor threw exception; nested exception is org.opensaml.saml2.metadata.provider.MetadataProviderException: Unable to read resource
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

如果需要,我可以共享我的SAML配置。

0 个答案:

没有答案