cancel
Showing results for 
Search instead for 
Did you mean: 

ParserPool exception during SAML extension setup in 1905 Hybris version code

former_member708340
Discoverer
0 Kudos

We are trying to setup the SAML extension in our codebase. We have generated the jks(keystore) file and the metadata.xml files. Once we place the keystore and the metadata.xml file in the path

\hybris\bin\modules\platform\samlsinglesignon\web\webroot\WEB-INF\security

We have added <extension name='samlsinglesignon' /> in the localextensions.xml and after build when we are trying to start the hybris server, we are getting below error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#2': Cannot resolve reference to bean 'metadataGeneratorFilter' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataGeneratorFilter' defined in ServletContext resource [/WEB-INF/security/spring-security-config.xml]: Cannot create inner bean 'org.springframework.security.saml.metadata.MetadataGenerator#1f7ac5f9' of type [org.springframework.security.saml.metadata.MetadataGenerator] while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.saml.metadata.MetadataGenerator#1f7ac5f9': Unsatisfied dependency expressed through method 'setSamlLogoutProcessingFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'samlLogoutProcessingFilter': Unsatisfied dependency expressed through method 'setContextProvider' INFO [localhost-startStop-2] [PropertySourcedRequestMappingHandlerMapping] Mapped URL path [/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contextProvider': Unsatisfied dependency expressed through method 'setMetadata' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadata' defined in ServletContext resource [/WEB-INF/security/spring-security-config.xml]: Cannot create inner bean 'org.springframework.security.saml.metadata.ExtendedMetadataDelegate#6cf08e53' 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#6cf08e53' defined in ServletContext resource [/WEB-INF/security/spring-security-config.xml]: Cannot create inner bean 'org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider#4f1c643e' of type [org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider#4f1c643e' defined in ServletContext resource [/WEB-INF/security/spring-security-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.opensaml.xml.parse.StaticBasicParserPool' to required type 'org.opensaml.xml.parse.ParserPool' for property 'parserPool'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'org.opensaml.xml.parse.StaticBasicParserPool' to required type 'org.opensaml.xml.parse.ParserPool' for property 'parserPool': no matching editors or conversion strategy found


Has anyone faced this issue? Any inputs on how to resolve this issue?

Thanks in advance.

Accepted Solutions (0)

Answers (0)