Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 97492 invoked from network); 9 Feb 2009 10:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 10:04:24 -0000 Received: (qmail 12948 invoked by uid 500); 9 Feb 2009 10:04:23 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 12924 invoked by uid 500); 9 Feb 2009 10:04:23 -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 12913 invoked by uid 99); 9 Feb 2009 10:04:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 02:04:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of imavroukakis@gameaccount.com designates 83.244.222.83 as permitted sender) Received: from [83.244.222.83] (HELO mail1.gameaccount.com) (83.244.222.83) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 10:04:16 +0000 Received: from localhost ([127.0.0.1] helo=[192.168.30.190]) by mail1.gameaccount.com with esmtp (Exim 4.66) (envelope-from ) id 1LWSzF-0006ya-Un for users@directory.apache.org; Mon, 09 Feb 2009 10:03:34 +0000 Received: from [192.168.30.190] ([192.168.30.190] helo=[192.168.30.190]) by ASSP.nospam; 9 Feb 2009 10:03:33 +0000 Message-ID: <498FFF8E.9030000@gameaccount.com> Date: Mon, 09 Feb 2009 10:03:58 +0000 From: Yiannis Mavroukakis Organization: GameAccount User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: [ApacheDS] Adding a custom schema with 1.5.5 References: <498AFE3A.7050406@vogon.net> <498B02CB.4050306@vogon.net> <498B0A19.5050301@vogon.net> <98d8c0860902050807q1b10ca3fu82986704a4484954@mail.gmail.com> <498B1061.3060007@vogon.net> <498B12BC.90805@vogon.net> <20090205174426.vn3e8wx6v4k8c4ok@www.seelmann-it.de> <498B1AB6.5080306@gameaccount.com> <498CA120.3010903@gameaccount.com> <498D26A7.3020407@gmail.com> <498D38D4.1060706@gameaccount.com> <498D66E1.6080406@gmail.com> In-Reply-To: <498D66E1.6080406@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ah slight gotcha here...The tmp directory still contained the old schema definitions, so the new one was not being picked up..Once I cleaned up tmp, that sorted it out. Thanks for all your help! ayyagarikiran wrote: > > yep, should be there. > > Kiran Ayyagari > > Yiannis Mavroukakis wrote: >> Hi Kiran, >> >> I'm using apacheds-all.jar so at the top of the tree i just do a mvn >> clean and mvn install, that should rebuild bootstrap-partition and >> insert it into the >> apacheds-all.jar, shouldn't it? >> >> Thanks, >> >> Yiannis >> >> ayyagarikiran wrote: >>> hi Yiannis, >>> >>> did you build the bootstrap-partition module also after making >>> the below mentioned changes. This is a >>> static partition from which all the schema files will be loaded >>> during server startup. >>> >>> HTH >>> Kiran Ayyagari >>> >>> Yiannis Mavroukakis wrote: >>>> Oh FFS I somehow managed to delete Alex's reply...moron :-) >>>> >>>> I would actually be more interested in a way to integrate my schema >>>> into the build, since the DS is going to be embedded...So far what >>>> I've done is to: >>>> >>>> edit schema-extras/pom.xml and add >>>> >>>> >>>> gameaccount >>>> >>>> inetorgperson >>>> system >>>> core >>>> >>>> >>>> >>>> Add my schema in schema-extras/src/main/schema and finally an entry >>>> in the bootstrap-partition/pom.xml >>>> >>>> org.apache.directory.server.schema.bootstrap.GameaccountSchema >>>> >>>> >>>> Everything compiles fine, but when I browse the server, the schema >>>> is not there..Have I forgotten/missed/wrecked anything else? >>>> >>>> Thanks! >>>> >>>> Yiannis >>>> >>>> >>>> Yiannis Mavroukakis wrote: >>>>> >>>>> Hello everyone, >>>>> >>>>> I'm currently playing with ApacheDS, looking to integrate to to >>>>> our production systems, but I've come up against a hard obstacle >>>>> in the form of adding a custom schema >>>>> .I cannot figure out the programmatic means to do this, having >>>>> looked at the (obsolete I know) 1.0.x way, and trying to pick the >>>>> source code apart to figure out how this is done. I've generated >>>>> the custom schema and the closest I've managed is the following >>>>> >>>>> directoryService.startup( ); >>>>> >>>>> GameaccountSchema gaSchema = new GameaccountSchema( ); >>>>> gaSchema.enable( ); directoryService.getRegistries( >>>>> ).getSchemaLoader( ).load( gaSchema >>>>> ,directoryService.getRegistries( ) ,false); >>>>> >>>>> This produces some output in the debug logs, but when I browse the >>>>> server I don't see my custom schema there..Any help in doing this >>>>> will be greatly appreciated! >>>>> >>>>> Thanks, >>>>> >>>>> Yiannis >>>>> >>>>> >>>> >>