2019 Aug 30 7:15 AM - edited 2024 Feb 03 5:36 PM
Hi All,
We have a customsamlsinglesignonaddon , installed into samlsinglesignon extension. But we are getting class not found exception for spring beans which we have defined in customsamlsinglesignonaddon-web-spring.xml.
It is working fine in hybris 6.7 version, but after migrated to 1905. we are getting class not found exception during server startup.
Any pointers on this issue ?
web-spring.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">;
<context:annotation-config/>
<context:component-scan base-package="com.custom.samlsinglesignon" />
<bean id="redirectionController" class="com.custom.samlsinglesignon.controllers.CustomRedirectionController"/>
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/saml/**">redirectionController</prop>
</props>
</property>
</bean><br>
Error :
ERROR [localhost-startStop-7] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#2' while setting bean property 'sourceList' with key [2]; nested exception is 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#73f4e8c2' 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#73f4e8c2': Unsatisfied dependency expressed through method 'setSamlWebSSOHoKFilter' parameter 0; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.custom.samlsinglesignon.controllers.CustomRedirectionController] for bean with name 'redirectionController' defined in class path resource [Customsamlsinglesignonaddon/web/spring/Customsamlsinglesignonaddon-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: com.custom.samlsinglesignon.controllers.CustomRedirectionController
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.