Announcement Announcement Module
Collapse
No announcement yet.
Error whne creating LDAP Custom Partition in Apache Directory Server Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error whne creating LDAP Custom Partition in Apache Directory Server

    Hi Guys,

    I'm trying to create a new custom partition for ApacheDS.

    I was trying to run this example: http://directory.apache.org/apacheds...-apacheds.html
    I successfully added the bean in server.xml and generated the jar running mvn install and copied to lib/ext.

    When I try to start the Apache Service I'm not able to. Checking the logs I get the below error.
    I get Caused by: java.lang.NoClassDefFoundError: org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.
    The jars version in lib (where ApacheDS is installed) for shared ldap are 0.9.19 and he ones in pom.xml are 0.9.17.

    Could this be causing the error? If I try to change the references in the pom file to use 19 instead of 17 I get a lot of errors when trying to do mvn install.

    Any thoughts about this problem?


    [15:02:23] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on null.init(InstallationLayout, String[])
    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from URL [file:/C:/Program%20Files%20(x86)/Apache%20Directory%20Server/instances/default/conf/server.xml]; nested exception is java.lang.NoClassDefFoundError: org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:420)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:342)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:310)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:149)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:212)
    at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:113)
    at org.apache.xbean.spring.context.FileSystemXmlAppli cationContext.loadBeanDefinitions(FileSystemXmlApp licationContext.java:168)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:123)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:422)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:352)
    at org.apache.xbean.spring.context.FileSystemXmlAppli cationContext.<init>(FileSystemXmlApplicationConte xt.java:149)
    at org.apache.xbean.spring.context.FileSystemXmlAppli cationContext.<init>(FileSystemXmlApplicationConte xt.java:48)
    at org.apache.directory.server.Service.initLdap(Servi ce.java:112)
    at org.apache.directory.server.Service.init(Service.j ava:77)
    at org.apache.directory.daemon.Bootstrapper.callInit( Bootstrapper.java:154)
    at org.apache.directory.daemon.TanukiBootstrapper.sta rt(TanukiBootstrapper.java:54)
    at org.tanukisoftware.wrapper.WrapperManager$12.run(W rapperManager.java:2788)
    Caused by: java.lang.NoClassDefFoundError: org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at java.beans.Introspector.getPublicDeclaredMethods(U nknown Source)
    at java.beans.Introspector.getTargetMethodInfo(Unknow n Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at org.apache.xbean.spring.context.v2c.XBeanQNameHelp er.getBeanInfo(XBeanQNameHelper.java:78)
    at org.apache.xbean.spring.context.v2c.XBeanQNameHelp er.coerceNamespaceAwarePropertyValues(XBeanQNameHe lper.java:54)
    at org.apache.xbean.spring.context.v2c.XBeanBeanDefin itionParserDelegate.parseBeanDefinitionElement(XBe anBeanDefinitionParserDelegate.java:59)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseBeanDefinitionElement(BeanDe finitionParserDelegate.java:389)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parsePropertySubElement(BeanDefin itionParserDelegate.java:942)
    at org.apache.xbean.spring.context.v2c.XBeanBeanDefin itionParserDelegate.parsePropertySubElement(XBeanB eanDefinitionParserDelegate.java:53)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseListElement(BeanDefinitionPa rserDelegate.java:1081)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parseListElement(XBeanNamespaceHandler.jav a:604)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parseNestedPropertyViaIntrospection(XBeanN amespaceHandler.java:597)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.tryParseNestedPropertyViaIntrospection(XBe anNamespaceHandler.java:566)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.addNestedPropertyElements(XBeanNamespaceHa ndler.java:535)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parseBeanFromExtensionElement(XBeanNamespa ceHandler.java:226)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parseBeanFromExtensionElement(XBeanNamespa ceHandler.java:271)
    at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parse(XBeanNamespaceHandler.java:155)
    at org.apache.xbean.spring.context.v2.XBeanNamespaceH andler.parse(XBeanNamespaceHandler.java:49)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1297)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1287)
    at org.apache.xbean.spring.context.v2.XBeanBeanDefini tionDocumentReader.parseBeanDefinitions(XBeanBeanD efinitionDocumentReader.java:84)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:92)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:507)
    at org.apache.xbean.spring.context.v2.XBeanXmlBeanDef initionReader.registerBeanDefinitions(XBeanXmlBean DefinitionReader.java:79)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:398)
    ... 18 more
    Caused by: java.lang.ClassNotFoundException: org.apache.directory.shared.ldap.exception.LdapOpe rationNotSupportedException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
Working...
X