LDIF file import at startup - still no ssuccess
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > LDIF file import at startup - still no ssuccess




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    LDIF file import at startup - still no ssuccess  
Nikola Goran ÄŒutura


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-06 12:11 AM

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.ServerContextFacto
ry] -
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.hasEnt
ry
(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.hasEnt
ry
(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.hasEnt
ry
(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.hasEnt
ry
(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.hasEnt
ry
(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.hasEnt
ry
(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.getInitialConte
xt
(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.SchemaServ
ice] -
Filtering entry Attributes
Type : 'ou'
Val[0] : loadedLdifFiles
Type : 'objectClass'
Val[0] : organizationalUnit

[23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaServ
ice] -
Time to filter entry = 0 ms
[23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFacto
ry] -
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.ServerContextFacto
ry] -
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.ServerContextFacto
ry] -
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: star
ted 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] - waitin
g for
shutdown command on port = 30003




Attachment: test.ldif
This has been downloaded 0 time(s).



[ Post a follow-up to this message ]



    Re: LDIF file import at startup - still no ssuccess  
Emmanuel Lecharny


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:11 PM

Hi Nikola,

can you fill a JIRA with all the informations (ldif file, server.xml file,
stack trace) ?

I will look at your problem this afternoon, but I need your original
server.xml

Emmanuel

On 10/25/06, Nikola Goran Èutura <ngcutura@gmail.com> wrote:
>
> 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.ServerContextFac
tory ] -
> 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.getBacken
d
> (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.hasE
ntry(
> 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.hasE
ntry(
> 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.hasE
ntry(
> 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.hasE
ntry(
> 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.hasE
ntry(
> 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.hasE
ntry(
> 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.getInitialCon
text(
> 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.SchemaSe
rvice ]
> - Filtering entry Attributes
>     Type : 'ou'
>         Val[0] : loadedLdifFiles
>     Type : 'objectClass'
>         Val[0] : organizationalUnit
>
> [23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaSe
rvice ]
> - Time to filter entry = 0 ms
> [23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFac
tory] -
> 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.ServerContextFac
tory ] -
> 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.ServerContextFac
tory] -
> 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: st
arted 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] - wait
ing for
> shutdown command on port = 30003
>



-- 
Cordialement,
Emmanuel Lécharny





[ Post a follow-up to this message ]



    Re: LDIF file import at startup - still no ssuccess  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:11 PM

Sounds like this is a problem with the crap that uses CompoundName
instead of our LdapDN.  For some reason the protocol-commons code that
used this class instead of LdapDN to load Ldifs in the LdifFileLoader is
trying not to depend on shared-ldap and they're doing something wrong.

Anyways please use JIRA to file a new issue.  Also please see if you can
generate a test case that reproduces the problem and attach it to the JIRA.

Here's how you can rapidly generate a test case skeleton project using a
test case archetype for ApacheDS:

http://cwiki.apache.org/DIRxSRVx10/reporting-bugs.html

Thanks,
Alex


Nikola Goran ÄŒutura wrote:
> 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.ServerContextFac
tory ]
> - 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] - Looku
p
> 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=conf
iguration,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=conf
iguration,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=conf
iguration,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=conf
iguration,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] - Looku
p
> 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.1
0=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.getBacken
d(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(I
nterceptorChain.java:157)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(Base
Interceptor.java:134)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(Base
Interceptor.java:134)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(Base
Interceptor.java:134)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(Base
Interceptor.java:134)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(Base
Interceptor.java:134)
>     at
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry
> (InterceptorChain.java:1326)
>     at
> org.apache.directory.server.core.exception.ExceptionService.add(ExceptionS
ervice.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(BaseInter
ceptor.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(Authorizat
ionService.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(ReferralServ
ice.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(Intercep
torChain.java:706)
>     at
> org.apache.directory.server.core.partition.PartitionNexusProxy.add(Partiti
onNexusProxy.java
> :325)
>     at
> org.apache.directory.server.core.partition.PartitionNexusProxy.add(Partiti
onNexusProxy.java:313)
>     at
> org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext(Se
rverDirContext.java:376)
>
>     at
> org.apache.directory.server.protocol.shared.store.LdifFileLoader.execute(L
difFileLoader.java:183)
>     at
> org.apache.directory.server.jndi.ServerContextFactory.loadLdifs(ServerCont
extFactory.java:341)
>     at
> org.apache.directory.server.jndi.ServerContextFactory.afterStartup(ServerC
ontextFactory.java:207)
>     at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDi
rectoryService.java:238)
>     at
> org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialCon
text
> (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(ProcrunBootst
rapper.java:65)
> [23:57:26] DEBUG
> [org.apache.directory.server.core.authn.AuthenticationService ] - Addi
ng
> 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=conf
iguration,2.5.4.11=system'
> exists.
> [23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaSe
rvice
> ] - Filtering entry Attributes
>     Type : 'ou'
>         Val[0] : loadedLdifFiles
>     Type : 'objectClass'
>         Val[0] : organizationalUnit
>
> [23:57:26] DEBUG [org.apache.directory.server.core.schema.SchemaSe
rvice
> ] - Time to filter entry = 0 ms
> [23:57:26] INFO [org.apache.directory.server.jndi.ServerContextFac
tory]
> - 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.ServerContextFac
tory ]
> - 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.ServerContextFac
tory]
> - 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: st
arted
> 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] - wait
ing
> for shutdown command on port = 30003







[ Post a follow-up to this message ]



    Re: LDIF file import at startup - still no ssuccess  
Nikola Goran ÄŒutura


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-27-06 12:11 PM

Issue DIRSERVER-770 created. Test case will follow. Thanks for the link, I
am not experienced with Maven so I'll need some time to figure it out.

Regards,
NGC


On 10/26/06, Alex Karasulu <aok123@bellsouth.net> wrote:
>
> Sounds like this is a problem with the crap that uses CompoundName
> instead of our LdapDN.  For some reason the protocol-commons code that
> used this class instead of LdapDN to load Ldifs in the LdifFileLoader is
> trying not to depend on shared-ldap and they're doing something wrong.
>
> Anyways please use JIRA to file a new issue.  Also please see if you can
> generate a test case that reproduces the problem and attach it to the
> JIRA.
>
> Here's how you can rapidly generate a test case skeleton project using a
> test case archetype for ApacheDS:
>
> http://cwiki.apache.org/DIRxSRVx10/reporting-bugs.html
>
> Thanks,
> Alex
>
>
> Nikola Goran ÄŒutura wrote: 
> 2.5.4.11=configuration,2.5.4.11=system', 
> 2.5.4.11=configuration,2.5.4.11=system' 
> 2.5.4.11=configuration,2.5.4.11=system' 
> 2.5.4.11=configuration,2.5.4.11=system' 
> exists. 
> 2.5.4.10=activemq' 
> org.apache.directory.server.core.partition.DefaultPartitionNexus.getBacken
d
> (DefaultPartitionNexus.java:987) 
> org.apache.directory.server.core.partition.DefaultPartitionNexus.hasEntry 
> (InterceptorChain.java:157) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> BaseInterceptor.java:134) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> BaseInterceptor.java:134) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> BaseInterceptor.java:134) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> BaseInterceptor.java:134) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> BaseInterceptor.java:134) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasE
ntry 
> ExceptionService.java:94) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(
> InterceptorChain.java 
> BaseInterceptor.java:104) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(
> InterceptorChain.java:1181) 
> AuthorizationService.java:368) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(
> InterceptorChain.java:1181) 
> ReferralService.java:263) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(
> InterceptorChain.java:1181) 
> org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(
> InterceptorChain.java:1181) 
> InterceptorChain.java:706) 
> PartitionNexusProxy.java 
> PartitionNexusProxy.java:313) 
> ServerDirContext.java:376) 
> (LdifFileLoader.java:183) 
> ServerContextFactory.java:341) 
> ServerContextFactory.java:207) 
> DefaultDirectoryService.java:238) 
> org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialCon
text 
> ProcrunBootstrapper.java:65) 
>  ,ou=loadedLdifFiles,ou=configuration,ou=
system' 
> 2.5.4.11=configuration,2.5.4.11=system' 
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:01 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register