directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan McLaughlin <...@danshome.net>
Subject Replication Defaults in server.xml invalid?
Date Wed, 17 Mar 2010 14:48:28 GMT
FYI...I started to play around with replication, but the default server.xml
seems to have issues.

      <replicationInterceptor>
        <configuration>
          <replicationConfiguration serverPort="10390"
peerReplicas="instance_ldap02@ldap02:10392">
            <replicaId>
              <replicaId id="instance_ldap01"/>
            </replicaId>
          </replicationConfiguration>
        </configuration>
      </replicationInterceptor>

    </interceptors>

    <replicationConfiguration>
      <providers>
        <provider id="1" type="refreshAndPersist" timeLimit="1000"
sizeLimit="1000">
          <url>
            ldap://ldap01:10389/ou=cris?*, +?sub?(objectClass=*)
          </url>
          <connection bindMethod="simple">
            <principal>
              uid=admin,ou=system
            </principal>
            <credentials>secret</credentials>
          </bind>
        </provider>
        <provider id="2" type="refreshAndPersist" timeLimit="1000"
sizeLimit="1000">
          <url>
            ldap://ldap02:10389/ou=cris?*, +?sub?(objectClass=*)
          </url>
          <connection bindMethod="simple">
            <principal>
              uid=admin,ou=system
            </principal>
            <credentials>secret</credentials>
          </bind>
        </provider>
      </providers>
    </replicationConfiguration>


D:\servers\apacheds_1.5.5>apacheds.bat
           _                     _          ____  ____
          / \   _ __    ___  ___| |__   ___|  _ \/ ___|
         / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \
        / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |
       /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/
               |_|

Exception in thread "main"
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
120 in XML document from URL
[file:/D:/servers/apacheds_1.5.5/conf/server.xml] is invalid; nested
exception is org.xm
l.sax.SAXParseException: The element type "connection" must be terminated by
the matching end-tag "</connection>".
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:48)
        at org.apache.directory.server.Service.initLdap(Service.java:113)
        at org.apache.directory.server.Service.init(Service.java:78)
        at org.apache.directory.server.UberjarMain.main(UberjarMain.java:55)
Caused by: org.xml.sax.SAXParseException: The element type "connection" must
be terminated by the matching end-tag "</connection>".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
        ... 16 more

--

Thanks,

Dan McLaughlin


NOTICE: This e-mail message and all attachments transmitted with it are for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is strictly prohibited. The contents of this e-mail are
confidential and may be subject to work product privileges. If you are not
the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.

Need to schedule a meeting??? http://www.tungle.me/DanMcLaughlin

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