« Return to Thread: Daisy 2.3 upgrade LDAP issue

Daisy 2.3 upgrade LDAP issue

by Mario Brackeva :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

After upgrading our Daisy from 2.2 to 2.3 (on a test server), the repository won’t start anymore. Apparently it has an issue with LDAP.

We use our Active Directory to authenticate users in Daisy. This config has been working fine as of Daisy 1.5, and it still does in 2.2.

 

Excerpt from the file daisy-repository-server-service.log:

 

… (all is well up to here)

INFO   | jvm 1    | 2009/06/22 11:39:07 | [WrapperSimpleAppMain] INFO  org.outerj.daisy.runtime.info - Starting container ntlm - /appl/daisy/daisy/lib/daisy/jars/daisy-auth-ntlm-2.3.jar

INFO   | jvm 1    | 2009/06/22 11:39:07 | [WrapperSimpleAppMain] INFO  org.outerj.daisy.runtime.info - Starting container ldap - /appl/daisy/daisy/lib/daisy/jars/daisy-auth-ldap-2.3.jar

INFO   | jvm 1    | 2009/06/22 11:39:07 | org.outerj.daisy.runtime.DaisyRTException: Error constructing component container defined at /appl/daisy/daisy/lib/daisy/jars/daisy-auth-ldap-2.3.jar

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:114)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.runtime.DaisyRuntime.init(DaisyRuntime.java:91)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.run(DaisyRuntimeCli.java:177)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.main(DaisyRuntimeCli.java:37)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at java.lang.reflect.Method.invoke(Method.java:585)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.run(RuntimeCliLauncher.java:61)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.launch(RuntimeCliLauncher.java:41)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.main(RuntimeCliLauncher.java:37)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at java.lang.reflect.Method.invoke(Method.java:585)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at java.lang.Thread.run(Thread.java:595)

INFO   | jvm 1    | 2009/06/22 11:39:07 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapAuthFactory' defined in DAISY-INF/spring/applicationContext.xml in /appl/daisy/daisy/lib/daisy/jars/daisy-auth-ldap-2.3.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.authentication.impl.LdapAuthenticationFactory]: Constructor threw exception; nested exception is org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "searchBase" at <generated>file:/appl/daisy/daisydata/conf/myconfig.xml:135:58

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:231)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:957)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:869)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at java.security.AccessController.doPrivileged(Native Method)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:87)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       ... 16 more

INFO   | jvm 1    | 2009/06/22 11:39:07 | Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.authentication.impl.LdapAuthenticationFactory]: Constructor threw exception; nested exception is org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "searchBase" at <generated>file:/appl/daisy/daisydata/conf/myconfig.xml:135:58

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:225)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       ... 30 more

INFO   | jvm 1    | 2009/06/22 11:39:07 | Caused by: org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "searchBase" at <generated>file:/appl/daisy/daisydata/conf/myconfig.xml:135:58

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.apache.avalon.framework.configuration.DefaultConfiguration.getValue(DefaultConfiguration.java:214)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.authentication.impl.LdapAuthenticationFactory.configure(LdapAuthenticationFactory.java:68)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.outerj.daisy.authentication.impl.LdapAuthenticationFactory.<init>(LdapAuthenticationFactory.java:36)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)

INFO   | jvm 1    | 2009/06/22 11:39:07 |       ... 32 more

INFO   | jvm 1    | 2009/06/22 11:39:07 | Startup failed. Will try to shutdown and exit.

INFO   | jvm 1    | 2009/06/22 11:39:07 | [WrapperSimpleAppMain] INFO  org.outerj.daisy.runtime.info - Shutting down component containers.

INFO   | wrapperp | 2009/06/22 11:39:10 | port 31008 already in use, using port 32000 instead.

STATUS | wrapper  | 2009/06/22 11:39:11 | <-- Wrapper Stopped

 

It complains about the following part of the myconfig.xml:

      <scheme name="secret" description="LDAP Secret">

        <environment>

          <property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>

          <property name="java.naming.provider.url" value="ldap://server.domain.be:389"/>

          <property name="java.naming.security.authentication" value="simple"/>

          <!--property name="java.naming.security.protocol" value="ssl"/-->

          <property name="java.naming.security.principal" value="$daisyLogin@ntdomain"/>

        </environment>

        <cache enabled="true" maxCacheSize="3000" maxCacheDuration="1800000"/>

        <autoCreateUser>

          <roles>

            <role>Guest</role>

          </roles>

          <defaultRole>Guest</defaultRole>

          <updateableByUser>true</updateableByUser>

        </autoCreateUser>

      </scheme>

 

Kind regards,

Mario.


_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

 « Return to Thread: Daisy 2.3 upgrade LDAP issue