directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Konovalov <OKonova...@nyx.com>
Subject RE: Can't create partition
Date Tue, 19 Apr 2011 13:46:23 GMT
Oliver,

I use Apache Studio 1.5.3 to access ApacheDS.

Using Windows XP.
Which log file ?   I see 3.

Just reinstalled ApacheDS (on top of the old one).
In apacheds-rolling log got:
[09:11:54] ERROR [org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader] -
ERR_10004 Expecting to find a schema.ldif file in provided baseDirectory path 'C:\Program
Files\Apache Directory Server\instances\default\partitions\schema\ou=schema.ldif' but no such
file found.
[09:11:54] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on null.init(InstallationLayout,
String[])
java.io.FileNotFoundException: ERR_10004 Expecting to find a schema.ldif file in provided
baseDirectory path 'C:\Program Files\Apache Directory Server\instances\default\partitions\schema\ou=schema.ldif'
but no such file found.
	at org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader.<init>(LdifSchemaLoader.java:113)
	at org.apache.directory.server.configuration.ApacheDS.initSchema(ApacheDS.java:488)
	at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:124)
	at org.apache.directory.server.Service.initLdap(Service.java:136)
	at org.apache.directory.server.Service.init(Service.java:77)
	at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:154)

in wrapper.log:

INFO   | jvm 1    | 2011/04/19 09:11:54 | [09:11:54] ERROR [org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader]
- ERR_10004 Expecting to find a schema.ldif file in provided baseDirectory path 'C:\Program
Files\Apache Directory Server\instances\default\partitions\schema\ou=schema.ldif' but no such
file found.
INFO   | jvm 1    | 2011/04/19 09:11:54 | [09:11:54] ERROR [org.apache.directory.daemon.Bootstrapper]
- Failed on null.init(InstallationLayout, String[])
INFO   | jvm 1    | 2011/04/19 09:11:54 | java.io.FileNotFoundException: ERR_10004 Expecting
to find a schema.ldif file in provided baseDirectory path 'C:\Program Files\Apache Directory
Server\instances\default\partitions\schema\ou=schema.ldif' but no such file found.
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader.<init>(LdifSchemaLoader.java:113)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.server.configuration.ApacheDS.initSchema(ApacheDS.java:488)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:124)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.server.Service.initLdap(Service.java:136)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.server.Service.init(Service.java:77)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:154)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:54)
INFO   | jvm 1    | 2011/04/19 09:11:54 | 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
STATUS | wrapper  | 2011/04/19 09:11:56 | <-- Wrapper Stopped
ERROR  | wrapper  | 2011/04/19 09:11:57 | The Apache Directory Server - default service was
launched, but failed to start.

No, I haven't touched or removed any ldif files.

I guess, need to wipe out old one and install it for fresh.

What do you think ?

TIA,
Oleg.




-----Original Message-----
From: Oliver Schmidt [mailto:oliver.schmidt.wue@arcor.de] 
Sent: Tuesday, April 19, 2011 9:35 AM
To: users@directory.apache.org
Subject: Re: Can't create partition

Hi Oleg,
which tool do you use to access your ApacheDS? 

What does the log file say? On Linux, there are two log files. The more
detailed one should be where the binaries are (C:\Program Files\
maybe...).

Oliver

Am Montag, den 18.04.2011, 15:01 -0400 schrieb Oleg Konovalov:
> Hi,
> 
>  
> 
> I am completely new to LDAP and ApacheDS,
> 
> so if I am asking something silly, please bare with me.
> 
>  
> 
> I am trying to create Single Sign-on layer for few web apps using
> Spring Security3, CAS, ApacheDS 
> 
> as per “Spring Security 3” book, ch.10.
> 
> (had many problems, latest – with CAS, but that is besides the scope
> here).
> 
>  
> 
> I changed configuration to use external ApacheDS on localhost,
> 
> Installed ApacheDS 1.5.7 & Studio 1.5.3
> 
> Tried to import sample LDIF file and on first node got an exception:
> 
>  
> 
> Error while importing LDIF
> 
> - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for     Add Request
> 
>    javax.naming.NameNotFoundException: [LDAP: error code 32 -
> 
> NO_SUCH_OBJECT: failed for
> 
> Add Request : ClientEntry
> 
>      dn: dc=jbcppets,dc=com
> 
>      objectClass: extensibleObject
> 
>      objectClass: domain
> 
>      objectClass: top
> 
>      dc: jbcppets
> 
> : ERR_268 Cannot find a partition for dc=jbcppets,dc=com]; 
> 
> remaining name 'dc=jbcppets,dc=com'
> 
>          at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
> 
>          at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
> Source)
> 
>          at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
> Source)
> 
>          at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown
> Source)
> 
>  
> 
> Googled up a few interesting replies to that problem, most said that
> need to create Partition first with 'dc=jbcppets,dc=com'
> 
>  
> 
> So I tried many times to add segments like that to server.xml
>  partitions  section, 
> 
> Following:
> http://directory.apache.org/apacheds/1.5/143-adding-your-own-partition-resp-suffix.html
> 
> Restart server, but still do NOT get new namingContexts in Root DSE.
> 
>  
> 
> <jdbmPartition id="sevenSeas" suffix="o=sevenSeas" /> 
> 
>       
> 
>       <jdbmPartition id="jbcppets" cacheSize="100"
> suffix="dc=jbcppets,dc=com" optimizerEnabled="true"
> 
>                 syncOnWrite="true">
> 
>                 <indexedAttributes>                     
> 
>                 <jdbmIndex attributeId="dc" cacheSize="100"/>
> 
>                                 <jdbmIndex attributeId="ou"
> cacheSize="100"/>
> 
>                                 <jdbmIndex
> attributeId="krb5PrincipalName" cacheSize="100"/>
> 
>                                 <jdbmIndex attributeId="uid"
> cacheSize="100"/>
> 
>           <jdbmIndex attributeId="objectClass" cacheSize="100"/>
> 
>                 </indexedAttributes>
> 
>       </jdbmPartition>
> 
>                 
> 
>       <jdbmPartition id="jbcppets" cacheSize="100"
> suffix="dc=jbcppets,dc=com" optimizerEnabled="true"
>  syncOnWrite="true"/>
> 
>  
> 
>  
> 
> Interestingly, although originally for  dc=example,dc=com  there was a
> namingContexts in right panel, 
> 
> there was no entry in RootDSE (as per picture in documentation above),
> 
> well I added NewContextEntry, so now looks like in the doc.
> 
>  
> 
> Also tried to rename existing dc=example,dc=com   into example2:
>   dc=example2,dc=com  there, restarted server,
> 
> but it still shows  dc=example,dc=com  ,  not example2.
> 
> Is it cached ?
> 
>  
> 
> Cleared IE cache.  Using Win XP.  No difference, still same problem.
> 
>  
> 
> Am I doing something wrong ?
> 
>  
> 
>  
> 
> Please help !
> 
>  
> 
> (I am attaching my full server.xml.)
> 
> TIA,
> 
> Oleg.
> 
>  
> 
>  
> 
> 
> 
> ______________________________________________________________________
> 
> Please consider the environment before printing this email.
> 
> Visit our website at http://www.nyse.com 
> ***************************************************************************** 
> Note: The information contained in this message and any attachment to
> it is privileged, confidential and protected from disclosure. If the
> reader of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify the
> sender immediately by replying to the message, and please delete it
> from your system. Thank you. NYSE Euronext.
> 


Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment to it is privileged, confidential
and protected from disclosure.  If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication in error, please notify the
sender immediately by replying to the message, and please delete it from your system.  Thank
you.  NYSE Euronext.
Mime
View raw message