directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon.Tem...@saaconsultants.com
Subject Server LDIF Import Questions
Date Tue, 08 Nov 2005 13:40:57 GMT




1.  In ServerContextFactory there are a number of references to
pathSeperatorChar which should be seperatorChar (otherwise the code always
evaluates to "unixFilePath".

2.  I keep getting this exception - can anyone advise?

3:15:19,453 DEBUG [DnParser](main) Parsing DN
'windowsFilePath=C:\XXX\YYY\RCS\custom\jboss-xxx\conf\apache-ds\ldif\newuser.ldif,ou=loadedLdifFiles,ou=configuration,ou=system'
13:15:26,187 ERROR [ApacheDS](main) Starting failed
org.apache.ldap.common.exception.LdapInvalidNameException: Parser failure
on name:

windowsFilePath=C:\XXX\YYY\RCS\custom\jboss-xxx\conf\apache-ds\ldif\newuser.ldif,ou=loadedLdifFiles,ou=configuration,ou=system
Antlr exception trace:
line 1:1: unexpected token: windowsFilePath
      at org.apache.ldap.common.name.antlrNameParser.attributeTypeAndValue(
antlrNameParser.java:181)
      at org.apache.ldap.common.name.antlrNameParser.nameComponent(
antlrNameParser.java:120)
      at org.apache.ldap.common.name.antlrNameParser.name(
antlrNameParser.java:69)
      at org.apache.ldap.common.name.DnParser.parse(DnParser.java:187)
      at org.apache.ldap.common.name.LdapName.<init>(LdapName.java:93)
      at org.apache.ldap.server.jndi.ServerDirContext.createSubcontext(
ServerDirContext.java:347)
      at org.apache.ldap.server.jndi.ServerContextFactory.addFileEntry(
ServerContextFactory.java:217)
      at org.apache.ldap.server.jndi.ServerContextFactory.loadLdifs(
ServerContextFactory.java:340)
      at org.apache.ldap.server.jndi.ServerContextFactory.afterStartup(
ServerContextFactory.java:134)
      at org.apache.ldap.server.DefaultDirectoryService.startup(
DefaultDirectoryService.java:214)
      at
org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(
AbstractContextFactory.java:102)
      at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:662)
      at javax.naming.InitialContext.getDefaultInitCtx(
InitialContext.java:243)
      at javax.naming.InitialContext.init(InitialContext.java:219)
      at javax.naming.InitialContext.<init>(InitialContext.java:195)
      at javax.naming.directory.InitialDirContext.<init>(
InitialDirContext.java:80)

3.  Once a server has processed the files in the LDIF folder should they be
removed?

TIA


Simon Temple



Mime
View raw message