Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 392671AEF for ; Tue, 19 Apr 2011 15:30:03 +0000 (UTC) Received: (qmail 12509 invoked by uid 500); 19 Apr 2011 15:30:03 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 12486 invoked by uid 500); 19 Apr 2011 15:30:03 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 12475 invoked by uid 99); 19 Apr 2011 15:30:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 15:30:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pajbam@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 15:29:56 +0000 Received: by wyb33 with SMTP id 33so6027141wyb.37 for ; Tue, 19 Apr 2011 08:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=kW4M4CGSK3Fz437wm9lKwtlaROH9yhnvS48NNseERzg=; b=ifSX/JupyQ5meQdSQ2lJjVI3g9Wq3GuQ/sINc5OukPwqSkl2JWJtBwhYAffTi3/vpi MLoBhuyGxRk6YK7PSWR8QEfBLCllleZO8D7u7GOOPeaVGaZ84hmB3WbK0eUPK9TejbHE OCC5B/+peVGb9o8DSUcVg5yYJY9XAvrp2CpUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=IxK+H8HZj7B4WUDnXDD69BFtExIKvDwxUK6NZW4LBpxN7CxBGwjKIF2ZVr3r1BRD9+ 41nCjyHizPaKF7Qt/yU8U/LAq+zhd+sihws2iHz7ECnz/Yoq5n7vq9kDOFF5Kzj72Zgm tvOmzXHI/I/DNjuP9ZvYAwegEpMDT23qQrggg= Received: by 10.216.143.74 with SMTP id k52mr1415880wej.8.1303226958238; Tue, 19 Apr 2011 08:29:18 -0700 (PDT) Received: from [192.168.0.52] (lon92-10-78-226-4-211.fbx.proxad.net [78.226.4.211]) by mx.google.com with ESMTPS id y29sm12120wbd.21.2011.04.19.08.29.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 08:29:17 -0700 (PDT) Sender: Pierre-Arnaud Marcelot Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Can't create partition From: Pierre-Arnaud Marcelot In-Reply-To: Date: Tue, 19 Apr 2011 17:29:14 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4F9B2BB9-0E80-44CA-86B4-B9159B8EB216@marcelot.net> References: <1303220119.5886.6.camel@debian-squeeze.nbg.mgm-tp.com> To: users@directory.apache.org X-Mailer: Apple Mail (2.1084) Hi Oleg, In your previous mail, you said: > Started Apache Directories Studio, > Started Apache DS from there. Does this mean you started an Apache DS server instance you created = within Apache Directory Studio via the "Servers" view? Regards, Pierre-Arnaud On 19 avr. 2011, at 17:21, Oleg Konovalov wrote: > Update: =20 > when I started ApacheDS from Windows Services, > and then connected to it from Studio > it did create both new namingContexts. > Imported my LDIF file into "dc=3Djbcppets,dc=3Dcom" partition. >=20 > All worked fine. >=20 > So what should we conclude - bug in Studio creating new partitions ? >=20 > Or is it something wrong in ApacheDS on Windows XP: > Startup type - Automatic, but Status - blank (not started). Why ? >=20 > Thank you, > Oleg. >=20 > -----Original Message----- > From: Oleg Konovalov=20 > Sent: Tuesday, April 19, 2011 10:40 AM > To: 'users@directory.apache.org' > Subject: RE: Can't create partition >=20 > OK, I uninstalled ApacheDS from WinXP, > Wiped out its directories, > Installed it clean, > Added the following entries to partitions sections of server.xml : >=20 > >=20 > >=20 > Started Apache Directories Studio, > Started Apache DS from there. >=20 > It did NOT create new NamingContexts entries for these 2 items. >=20 > Checked logs - only in wrapper.log : >=20 > ERROR | wrapper | 2011/04/19 10:17:11 | CreateService failed - The = specified service already exists. (0x431) >=20 > Yes, there is Apache Directory Service - default in Windows service.=20= > Startup type - Automatic, but Status - blank (not started). I guess, = Studio is a place to start it. >=20 >=20 > What should I do to create a new partition (namingContexts) ? > What would you recommend ? >=20 >=20 > TIA, > Oleg. >=20 >=20 > -----Original Message----- > From: Oleg Konovalov=20 > Sent: Tuesday, April 19, 2011 9:46 AM > To: users@directory.apache.org > Subject: RE: Can't create partition >=20 > Oliver, >=20 > I use Apache Studio 1.5.3 to access ApacheDS. >=20 > Using Windows XP. > Which log file ? I see 3. >=20 > 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=3Dschema.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=3Dschema.ldif' = but no such file found. > at = org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader.(LdifSchemaLoader.java:113) > at = org.apache.directory.server.configuration.ApacheDS.initSchema(ApacheDS.jav= a:488) > at = org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:1= 24) > 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) >=20 > in wrapper.log: >=20 > 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=3Dschema.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=3Dschema.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.(LdifSchemaLoader.java:113) > INFO | jvm 1 | 2011/04/19 09:11:54 | at = org.apache.directory.server.configuration.ApacheDS.initSchema(ApacheDS.jav= a:488) > INFO | jvm 1 | 2011/04/19 09:11:54 | at = org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:1= 24) > 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.ja= va: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. >=20 > No, I haven't touched or removed any ldif files. >=20 > I guess, need to wipe out old one and install it for fresh. >=20 > What do you think ? >=20 > TIA, > Oleg. >=20 >=20 >=20 >=20 > -----Original Message----- > From: Oliver Schmidt [mailto:oliver.schmidt.wue@arcor.de]=20 > Sent: Tuesday, April 19, 2011 9:35 AM > To: users@directory.apache.org > Subject: Re: Can't create partition >=20 > Hi Oleg, > which tool do you use to access your ApacheDS?=20 >=20 > 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...). >=20 > Oliver >=20 > Am Montag, den 18.04.2011, 15:01 -0400 schrieb Oleg Konovalov: >> Hi, >>=20 >>=20 >>=20 >> I am completely new to LDAP and ApacheDS, >>=20 >> so if I am asking something silly, please bare with me. >>=20 >>=20 >>=20 >> I am trying to create Single Sign-on layer for few web apps using >> Spring Security3, CAS, ApacheDS=20 >>=20 >> as per =93Spring Security 3=94 book, ch.10. >>=20 >> (had many problems, latest =96 with CAS, but that is besides the = scope >> here). >>=20 >>=20 >>=20 >> I changed configuration to use external ApacheDS on localhost, >>=20 >> Installed ApacheDS 1.5.7 & Studio 1.5.3 >>=20 >> Tried to import sample LDIF file and on first node got an exception: >>=20 >>=20 >>=20 >> Error while importing LDIF >>=20 >> - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for Add Request >>=20 >> javax.naming.NameNotFoundException: [LDAP: error code 32 - >>=20 >> NO_SUCH_OBJECT: failed for >>=20 >> Add Request : ClientEntry >>=20 >> dn: dc=3Djbcppets,dc=3Dcom >>=20 >> objectClass: extensibleObject >>=20 >> objectClass: domain >>=20 >> objectClass: top >>=20 >> dc: jbcppets >>=20 >> : ERR_268 Cannot find a partition for dc=3Djbcppets,dc=3Dcom];=20 >>=20 >> remaining name 'dc=3Djbcppets,dc=3Dcom' >>=20 >> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source) >>=20 >> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown >> Source) >>=20 >> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown >> Source) >>=20 >> at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown >> Source) >>=20 >>=20 >>=20 >> Googled up a few interesting replies to that problem, most said that >> need to create Partition first with 'dc=3Djbcppets,dc=3Dcom' >>=20 >>=20 >>=20 >> So I tried many times to add segments like that to server.xml >> partitions section,=20 >>=20 >> Following: >> = http://directory.apache.org/apacheds/1.5/143-adding-your-own-partition-res= p-suffix.html >>=20 >> Restart server, but still do NOT get new namingContexts in Root DSE. >>=20 >>=20 >>=20 >> =20 >>=20 >>=20 >>=20 >> > suffix=3D"dc=3Djbcppets,dc=3Dcom" optimizerEnabled=3D"true" >>=20 >> syncOnWrite=3D"true"> >>=20 >> =20 >>=20 >> >>=20 >> > cacheSize=3D"100"/> >>=20 >> > attributeId=3D"krb5PrincipalName" cacheSize=3D"100"/> >>=20 >> > cacheSize=3D"100"/> >>=20 >> >>=20 >> >>=20 >> >>=20 >>=20 >>=20 >> > suffix=3D"dc=3Djbcppets,dc=3Dcom" optimizerEnabled=3D"true" >> syncOnWrite=3D"true"/> >>=20 >>=20 >>=20 >>=20 >>=20 >> Interestingly, although originally for dc=3Dexample,dc=3Dcom there = was a >> namingContexts in right panel,=20 >>=20 >> there was no entry in RootDSE (as per picture in documentation = above), >>=20 >> well I added NewContextEntry, so now looks like in the doc. >>=20 >>=20 >>=20 >> Also tried to rename existing dc=3Dexample,dc=3Dcom into example2: >> dc=3Dexample2,dc=3Dcom there, restarted server, >>=20 >> but it still shows dc=3Dexample,dc=3Dcom , not example2. >>=20 >> Is it cached ? >>=20 >>=20 >>=20 >> Cleared IE cache. Using Win XP. No difference, still same problem. >>=20 >>=20 >>=20 >> Am I doing something wrong ? >>=20 >>=20 >>=20 >>=20 >>=20 >> Please help ! >>=20 >>=20 >>=20 >> (I am attaching my full server.xml.) >>=20 >> TIA, >>=20 >> Oleg. >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> = ______________________________________________________________________ >>=20 >> Please consider the environment before printing this email. >>=20 >> Visit our website at http://www.nyse.com=20 >> = **************************************************************************= ***=20 >> 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. >>=20 >=20 >=20 > Please consider the environment before printing this email. >=20 > Visit our website at http://www.nyse.com >=20 > **************************************************** >=20 > 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. >=20 > Visit our website at http://www.nyse.com >=20 > **************************************************** >=20 > 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.