directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan McLaughlin <...@danshome.net>
Subject Re: Replication Defaults in server.xml invalid?
Date Wed, 17 Mar 2010 15:34:36 GMT
Tried replacing </bind> with </connection> and now I get the following...

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

Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized
xbean element mapping: replicationInterceptor in namespace
http://apacheds.org/config/1.5.5
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:273)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:155)
        at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1354)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.internalParseNestedCustomElement(XBeanBeanDefinitionParserDelegate.java:90)
        at
org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parsePropertySubElement(XBeanBeanDefinitionParserDelegate.java:47)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseListElement(BeanDefinitionParserDelegate.java:1081)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseListElement(XBeanNamespaceHandler.java:604)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:597)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.tryParseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:566)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addNestedPropertyElements(XBeanNamespaceHandler.java:535)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:226)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:271)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:155)
        at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
        at
org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:84)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
        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)

--

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


On Wed, Mar 17, 2010 at 10:00 AM, Pierre-Arnaud Marcelot <pa@marcelot.net>wrote:

> Hi Dan,
>
> Looks like the "</bind>" ending tags should actually be "</connection>"
> tags.
>
> Indeed, something is wrong in your default server.xml file.
>
> Regards,
> Pierre-Arnaud
>
>
> On 17 mars 2010, at 15:48, Dan McLaughlin wrote:
>
> > 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