directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ekin Sökmen <ekin.sok...@gmail.com>
Subject Apache DS replication configuration problem
Date Tue, 17 Mar 2009 14:12:56 GMT
Hi,

I'm trying to configure ApacheDS to work in replication mode. I'm using
standalone version of ApacheDS 1.5.4 ( apacheds-1.5.4.tar.gz).

First I tried to uncomment the replication related part in conf/server.xml
file as described in documentation. While trying to start apacheds the
following error occurs:

===============================
Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
load type: org.apache.directory.mitosis.service.ReplicationInterceptor.
Reason: java.lang.ClassNotFoundException:
org.apache.directory.mitosis.service.ReplicationInterceptor; nested
exception is java.lang.ClassNotFoundException:
org.apache.directory.mitosis.service.ReplicationInterceptor
Caused by: java.lang.ClassNotFoundException:
org.apache.directory.mitosis.service.ReplicationInterceptor
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass(XBeanQNameHelper.java:107)
    at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBeanQNameHelper.java:72)
    at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwarePropertyValues(XBeanQNameHelper.java:54)
    at
org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:63)
    at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:341)
    at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:216)
    at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:264)
    at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:157)
    at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)
    at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)
    at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1160)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
...
===============================



After reading more search results in internet, I found and tries follwing
configuration snipped:

===============================
        <spring:bean
class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
          <spring:property name="name" value="replicationService"/>
          <spring:property name="interceptor">
            <spring:bean
class="org.apache.directory.mitosis.service.ReplicationService">
              <spring:property name="configuration">
                <spring:bean
class="org.apache.directory.mitosis.configuration.ReplicationConfiguration">
                  <spring:property name="replicaId">
                    <spring:bean
class="org.apache.directory.mitosis.common.ReplicaId">
                      <spring:constructor-arg>
                        <spring:value>instance_a</spring:value>
                      </spring:constructor-arg>
                    </spring:bean>
                  </spring:property>
                  <spring:property name="serverPort" value="10390" />
                  <spring:property name="peerReplicas">
                    <spring:set>
                      <spring:value>instance_b@localhost
:10392</spring:value>
                    </spring:set>
                  </spring:property>
                </spring:bean>
              </spring:property>
            </spring:bean>
          </spring:property>
        </spring:bean>
===============================




Unfortunaltelty this configuration also doesn't work getting the following
exception:

===============================
Bean ''
    -> Property 'interceptor'
        -> Bean ''
            -> Property 'configuration'
                -> Bean ''; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
load type: org.apache.directory.mitosis.common.ReplicaId. Reason:
java.lang.ClassNotFoundException:
org.apache.directory.mitosis.common.ReplicaId; nested exception is
java.lang.ClassNotFoundException:
org.apache.directory.mitosis.common.ReplicaId
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Failed to load type: org.apache.directory.mitosis.common.ReplicaId. Reason:
java.lang.ClassNotFoundException:
org.apache.directory.mitosis.common.ReplicaId; nested exception is
java.lang.ClassNotFoundException:
org.apache.directory.mitosis.common.ReplicaId
Caused by: java.lang.ClassNotFoundException:
org.apache.directory.mitosis.common.ReplicaId
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass(XBeanQNameHelper.java:107)
===============================

Indeed after searching the classpath (lib/*.jar and bin/apacheds-tools.jar)
I couldn't find any class matching
"org.apache.directory.mitosis.common.ReplicaId" or even keyword "mitosis". I
think these classes are missing in 1.5.4 distribution.

Any suggestions?

ekin.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message