You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2009/04/27 09:17:30 UTC

[jira] Resolved: (DIRSERVER-1353) Server does nore recognize attributes keystoreFile and certificatePassword in ldapService in server.xml

     [ https://issues.apache.org/jira/browse/DIRSERVER-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Zoerner resolved DIRSERVER-1353.
---------------------------------------

    Resolution: Invalid
      Assignee: Stefan Zoerner

The configuration with the external keystore you tried will only work for the upcoming 1.5.5 version of ApacheDS. See the note in the beginning of 

http://directory.apache.org/apacheds/1.5/33-how-to-enable-ssl.html

In the 1.5.4 release, certificate gernerated by ApacheDS will work. You can replace the keys stored in the DIT, but this is a little bit tricky. I recommend to use the 1.5.5 SNAPSHOT. This version will be released soon anyway.

> Server does nore recognize attributes keystoreFile and certificatePassword in ldapService in server.xml
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1353
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1353
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Configuration
>            Reporter: Alfonsas Stonis
>            Assignee: Stefan Zoerner
>            Priority: Critical
>
> Configuration of keystore does not work.
> I have the following part in server.xml
>   <ldapService id="ldapsService"
>               enabled="true"
>               ipPort="7636"
>               enableLdaps="true"
> 			  keystoreFile="/var/lib/apacheds-1.5.4/conf/keystore.ks"
>               certificatePassword="welcome">
>     <directoryService>#directoryService</directoryService>
>     <socketAcceptor>#socketAcceptor</socketAcceptor>
>   </ldapService>
> This is as suggested by documentation. However, this causes exception (and failure to start):
> jvm 1    | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapsService' defined in URL [file:/var/lib/apacheds-1.5.4/default/conf/server.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'certificatePassword' of bean class [org.apache.directory.server.ldap.LdapService]: No property 'certificatePassword' found
> jvm 1    | Caused by:
> jvm 1    | org.springframework.beans.InvalidPropertyException: Invalid property 'certificatePassword' of bean class [org.apache.directory.server.ldap.LdapService]: No property 'certificatePassword' found
> jvm 1    |      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1105)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> jvm 1    |      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> jvm 1    |      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
> jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> jvm 1    |      at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)
> jvm 1    |      at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:48)
> jvm 1    |      at org.apache.directory.server.Service.init(Service.java:60)
> jvm 1    |      at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
> jvm 1    |      at org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:51)
> jvm 1    |      at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.