Attached is the LDIF file I want to import but it fails. I don't see errors in the file - import from JXplorer works just fine.

This line in log confuses me:

org.apache.directory.shared.ldap.exception.LdapNameNotFoundException : dc=com,dc=example,o=ActiveMQ

For some reason, ADS looks for 'dc=com,dc=example,o=ActiveMQ' instead of 'o=ActiveMQ, dc=example,dc=com'

I am running ADS 1.0.0 on Java 1.5

Regards,
NGC

[23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFactory ] - LDIF load directory 'C:\\Program Files\\apacheds-1.0.0\\conf\\test.ldif' is a file.  Will attempt to load as LDIF.
[23:57:26] DEBUG [org.apache.directory.server.core.authn.AuthenticationService] - Lookup name = '1.2.6.1.4.1.18060.1.1.1.3.19=c:\program files\apacheds-1.0.0\conf\test.ldif,2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system', attributes = [Ljava.lang.String;@c68a98
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus ] - Check if DN '1.2.6.1.4.1.18060.1.1.1.3.19=c:\program files\apacheds-1.0.0\conf\test.ldif,2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system' exists.
[23:57:26] DEBUG [org.apache.directory.server.core.authn.AuthenticationService ] - Matching name = '1.2.6.1.4.1.18060.1.1.1.3.19=c:\program files\apacheds-1.0.0\conf\test.ldif,2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system'
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus ] - Check if DN '1.2.6.1.4.1.18060.1.1.1.3.19=c:\program files\apacheds-1.0.0\conf\test.ldif,2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system' exists.
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus ] - Check if DN '2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system' exists.
[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader] - Ldif version : 1
[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader ] - Read an entry : Entry : o=ActiveMQ,dc=example,dc=com
    Change type is ADD
        Attributes :
        objectclass:
            organization
            top
        o:
            ActiveMQ

[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader] - hasNext(): -- returning true
[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader] - next(): -- called
[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader ] - Read an entry : Entry : ou=users,o=ActiveMQ,dc=example,dc=com
    Change type is ADD
        Attributes :
        ou:
            users
        objectclass:
            organizationalUnit
            top

[23:57:26] DEBUG [org.apache.directory.shared.ldap.ldif.LdifReader] - next(): -- returning ldif Entry : o=ActiveMQ,dc=example,dc=com
    Change type is ADD
        Attributes :
        objectclass:
            organization
            top
        o:
            ActiveMQ


[23:57:26] DEBUG [org.apache.directory.server.core.authn.AuthenticationService] - Lookup name = '0.9.2342.19200300.100.1.25=com,0.9.2342.19200300.100.1.25=example ,2.5.4.10=activemq'
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN '0.9.2342.19200300.100.1.25=com,0.9.2342.19200300.100.1.25=example,2.5.4.10=activemq' exists.
[23:57:26] DEBUG [ org.apache.directory.server.core.authn.AuthenticationService] - Adding the entry Attributes
    Type : 'dc'
        Val[0] : com
    Type : 'objectclass'
        Val[0] : organization
        Val[1] : top
    Type : 'o'
        Val[0] : ActiveMQ
 for DN = 'dc=com,dc=example,o=ActiveMQ'
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN '0.9.2342.19200300.100.1.25=com ,0.9.2342.19200300.100.1.25=example,2.5.4.10=activemq' exists.
[23:57:26] ERROR [org.apache.directory.server.protocol.shared.store.LdifFileLoader] - Failed to import LDIF into backing store.
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException : dc=com,dc=example,o=ActiveMQ
    at org.apache.directory.server.core.partition.DefaultPartitionNexus.getBackend(DefaultPartitionNexus.java:987)
    at org.apache.directory.server.core.partition.DefaultPartitionNexus.hasEntry (DefaultPartitionNexus.java:920)
    at org.apache.directory.server.core.interceptor.InterceptorChain$1.hasEntry(InterceptorChain.java:157)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:134)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:134)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:134)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:134)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:134)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry (InterceptorChain.java:1326)
    at org.apache.directory.server.core.exception.ExceptionService.add(ExceptionService.java:94)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java :1181)
    at org.apache.directory.server.core.interceptor.BaseInterceptor.add(BaseInterceptor.java:104)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1181)
    at org.apache.directory.server.core.authz.AuthorizationService.add(AuthorizationService.java:368)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1181)
    at org.apache.directory.server.core.referral.ReferralService.add(ReferralService.java:263)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1181)
    at org.apache.directory.server.core.authn.AuthenticationService.add (AuthenticationService.java:197)
    at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1181)
    at org.apache.directory.server.core.normalization.NormalizationService.add (NormalizationService.java:103)
    at org.apache.directory.server.core.interceptor.InterceptorChain.add(InterceptorChain.java:706)
    at org.apache.directory.server.core.partition.PartitionNexusProxy.add(PartitionNexusProxy.java :325)
    at org.apache.directory.server.core.partition.PartitionNexusProxy.add(PartitionNexusProxy.java:313)
    at org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext(ServerDirContext.java:376)
    at org.apache.directory.server.protocol.shared.store.LdifFileLoader.execute(LdifFileLoader.java:183)
    at org.apache.directory.server.jndi.ServerContextFactory.loadLdifs(ServerContextFactory.java:341)
    at org.apache.directory.server.jndi.ServerContextFactory.afterStartup(ServerContextFactory.java:207)
    at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:238)
    at org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext (AbstractContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init (Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
    at org.apache.directory.server.Service.init(Service.java :96)
    at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
    at org.apache.directory.daemon.ProcrunBootstrapper.prunsrvStart(ProcrunBootstrapper.java:65)
[23:57:26] DEBUG [org.apache.directory.server.core.authn.AuthenticationService ] - Adding the entry Attributes
    Type : 'windowsfilepath'
        Val[0] : C:\Program Files\apacheds-1.0.0\conf\test.ldif
    Type : 'objectClass'
        Val[0] : top
        Val[1] : windowsFile
 for DN = 'windowsFilePath=C:\\Program Files\\apacheds-1.0.0\\conf\\test.ldif,ou=loadedLdifFiles,ou=configuration,ou=system'
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN ' 1.2.6.1.4.1.18060.1.1.1.3.19=c:\program files\apacheds-1.0.0\conf\test.ldif,2.5.4.11=loadedldiffiles,2.5.4.11=configuration,2.5.4.11=system' exists.
[23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaService ] - Filtering entry Attributes
    Type : 'ou'
        Val[0] : loadedLdifFiles
    Type : 'objectClass'
        Val[0] : organizationalUnit

[23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaService ] - Time to filter entry = 0 ms
[23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFactory] - Added Extended Request Handler: 1.2.6.1.4.1.18060.1.1.1.100.3
[23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFactory ] - Added Extended Request Handler: 1.2.6.1.4.1.18060.1.1.1.100.1
[23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFactory] - Successful bind of an LDAP Service (10389) is complete.
[23:57:26] DEBUG [org.apache.directory.server.core.authn.AuthenticationService ] - Testing if entry name = '2.5.4.11=system' exists
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN '2.5.4.11=system' exists.
[23:57:26] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus ] - Check if DN '2.5.4.11=system' exists.
[23:57:26] INFO [org.apache.directory.server.Service] - server: started in 2828 milliseconds
[23:57:26] DEBUG [org.apache.directory.daemon.ProcrunBootstrapper] - prunsrvStart(String[]) calling callStart()
[23:57:26] DEBUG [org.apache.directory.daemon.ProcrunBootstrapper] - prunsrvStart(String[]) block waitForShutdown()
[23:57:26] DEBUG [org.apache.directory.daemon.Bootstrapper] - waiting for shutdown command on port = 30003