Error with LDAP authentication: BeanCreationException: Error creating bean with name 'userManager'

146 views
Skip to first unread message

Carsten Heidmann

unread,
May 21, 2021, 6:58:04 AM5/21/21
to wisemapping-support
Hi,
I am trying to deploy Wisemapping at our company and I would like to enable LDAP/AD integration for this. The configuration seems pretty clear and I hope that I will also be able to change to the username instead of the mail address with the information found her in the conversations.
I use a self-compiled version with the latest sources (5.0.2-SNAPSHOT).
But - when I try to start Wisemapping with LDAP enabled, I get an error: 
2021-05-21 09:58:35,422 WARN org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewSecurityAdvisor' defined in ServletContext resource [/WEB-INF/wisemapping-aop.xml]: Cannot resolve reference to bean 'viewSecurityAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewSecurityAdvice' defined in ServletContext resource [/WEB-INF/wisemapping-aop.xml]: Cannot resolve reference to bean 'mindmapService' while setting bean property 'mindmapService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mindmapService' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'mindMapServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mindMapServiceTarget' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceTarget' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userManager' while setting bean property 'userManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager' def
ined in ServletContext resource [/WEB-INF/wisemapping-model.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'encoder'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'passwordEncoder' available
5/21/2021 11:58:35 AM 2021-05-21 09:58:35,446 ERROR org.springframework.web.context.ContextLoader - Context initialization failed
5/21/2021 11:58:35 AM org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewSecurityAdvisor' defined in ServletContext resource [/WEB-INF/wisemapping-aop.xml]: Cannot resolve reference to bean 'viewSecurityAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewSecurityAdvice' defined in ServletContext resource [/WEB-INF/wisemapping-aop.xml]: Cannot resolve reference to bean 'mindmapService' while setting bean property 'mindmapService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mindmapService' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'mindMapServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mindMapServiceTarget' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceTarget' defined in ServletContext resource [/WEB-INF/wisemapping-service.xml]: Cannot resolve reference to bean 'userManager' while setting bean property 'userManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager' defined in ServletContext resource [/WEB-INF/wisemapping-model.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'encoder'; nested exception is or
g.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'passwordEncoder' available

Looking into the bean definitions I suspect, that the LDAP bean for user manager is missing the field encoder which is present in the DB bean. Has anyone also had this problem and is there an easy way to solve/workaround the problem?

Best wishes,
Carsten

Carsten Heidmann

unread,
May 21, 2021, 8:20:19 AM5/21/21
to wisemapping-support
I transferred this into an issue in Jira: https://wisemapping.atlassian.net/browse/WISE-549

Carsten Heidmann

unread,
May 21, 2021, 8:51:55 AM5/21/21
to wisemapping-support
It seems that I cannot view the issue anymore after creating it ...
Reply all
Reply to author
Forward
0 new messages