No bean named 'ldapAuthProvider' is defined

84 views
Skip to first unread message

Sébastien Denizot

unread,
Nov 27, 2015, 7:43:43 AM11/27/15
to transmart-discuss
Hello,

I am trying to setup LDAP for Tansmart 1.2.5 but I am getting the following error on server start up :

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ldapAuthProvider' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:575)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1114)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:279)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:270)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
        at org.springframework.beans.factory.BeanFactory$getBean$1.call(Unknown Source)
        at SpringSecurityCoreGrailsPlugin$_createBeanList_closure22.doCall(SpringSecurityCoreGrailsPlugin.groovy:777)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910)
        at groovy.lang.Closure.call(Closure.java:411)
        at groovy.lang.Closure.call(Closure.java:427)
        at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:2202

Does anybody have an idea what to do to fix this ?
I am using the foundation code and build my own war.

Thanks.

Regards.
Sébastien  Denizot

Ben Zack

unread,
Dec 2, 2015, 12:30:19 PM12/2/15
to transmart-discuss
We had the same error message with 1.2.4 and LDAP. It turned out that LDAP integration is broken in 1.2.4 version. Gustavo Lopes from the Hyve patched it and helped us get it working. I thought he pushed the changes back upstream, but I'm not sure.

Benjamin Baum

unread,
Aug 17, 2016, 9:31:09 AM8/17/16
to transmar...@googlegroups.com
It might be a little late, but anyway:

Set 
grails.plugin.springsecurity.ldap.active = true
in \grails-app\conf\Config.groovy

That fixed your error in my installation (16.1).

Benjamin

--
You received this message because you are subscribed to the Google Groups "transmart-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transmart-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages