You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Oliver Schmidt <ol...@arcor.de> on 2011/09/22 14:59:53 UTC

[ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Hi there,

since M2, there is no server.xml file anymore, right? So, I tried to add a
custom partition via Directory Studio under the
ou=partitions,ads-directoryServiceId=default,ou=config entry, right where
I could also find the example partition. Unfortunately the server would  
not start anymore then. The error message is:

org.apache.directory.server.config.ConfigurationException: Cannot open a  
cursor to read the configuration on  
ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config

Is there some other way how to create a new partition in M3?

Kind regards
Oliver

Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Posted by Oliver Schmidt <ol...@arcor.de>.
Hi Kiran and Pierre-Arnaud,

worked nicely. Thanks, I'll put the information into the Wiki.

Kind regards
Oliver

Am 22.09.2011, 15:05 Uhr, schrieb Kiran Ayyagari <ka...@apache.org>:

> there are several places that you need to modify for adding a new  
> partition.
>
> The best is to copy an existing partition and save it with a different
> name (all using Studio only)
> and finally adding the new partition's name to the ads-partitions
> attribute in the entry ads-directoryServiceId=default,ou=config
>
> OR
> you can share the config.ldif file present in the conf folder if the
> problem persists.
>
> On Thu, Sep 22, 2011 at 8:59 AM, Oliver Schmidt
> <ol...@arcor.de> wrote:
>> Hi there,
>>
>> since M2, there is no server.xml file anymore, right? So, I tried to  
>> add a
>> custom partition via Directory Studio under the
>> ou=partitions,ads-directoryServiceId=default,ou=config entry, right  
>> where
>> I could also find the example partition. Unfortunately the server would  
>> not
>> start anymore then. The error message is:
>>
>> org.apache.directory.server.config.ConfigurationException: Cannot open a
>> cursor to read the configuration on
>> ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config
>>
>> Is there some other way how to create a new partition in M3?
>>
>> Kind regards
>> Oliver
>>
>
>
>


-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Posted by Kiran Ayyagari <ka...@apache.org>.
there are several places that you need to modify for adding a new partition.

The best is to copy an existing partition and save it with a different
name (all using Studio only)
and finally adding the new partition's name to the ads-partitions
attribute in the entry ads-directoryServiceId=default,ou=config

OR
you can share the config.ldif file present in the conf folder if the
problem persists.

On Thu, Sep 22, 2011 at 8:59 AM, Oliver Schmidt
<ol...@arcor.de> wrote:
> Hi there,
>
> since M2, there is no server.xml file anymore, right? So, I tried to add a
> custom partition via Directory Studio under the
> ou=partitions,ads-directoryServiceId=default,ou=config entry, right where
> I could also find the example partition. Unfortunately the server would not
> start anymore then. The error message is:
>
> org.apache.directory.server.config.ConfigurationException: Cannot open a
> cursor to read the configuration on
> ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config
>
> Is there some other way how to create a new partition in M3?
>
> Kind regards
> Oliver
>



-- 
Kiran Ayyagari

Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
On 22 sept. 2011, at 15:15, Oliver Schmidt wrote:

> Hi Pierre-Arnaud,
> 
> no, I didn't since I didn't know which indexes are important and I assumed that ApacheDS would create those entries for me.

Unfortunately, no... It's doesn't (at this time).
But it would be cool if it did, indeed.

The example partition contains the minimal set of indexes (mostly system indexes).
You can also add additional ones if your entries need to be searched from a specific kind of data criteria.

> So I'll try again after having created those indexes. Thanks for the hint! :-)

As Kiran suggested, a complete copy/edit/paste of the example partition and its children should do the trick easily.

Regards,
Pierre-Arnaud

> Kind regards
> Oliver
> 
> Am 22.09.2011, 15:07 Uhr, schrieb Pierre-Arnaud Marcelot <pa...@marcelot.net>:
> 
>> Hi Oliver,
>> 
>> When you created your partition entry, did you also create all the entries underneath it, like indexes for example?
>> 
>> Regards,
>> Pierre-Arnaud
>> 
>> On 22 sept. 2011, at 14:59, Oliver Schmidt wrote:
>> 
>>> Hi there,
>>> 
>>> since M2, there is no server.xml file anymore, right? So, I tried to add a
>>> custom partition via Directory Studio under the
>>> ou=partitions,ads-directoryServiceId=default,ou=config entry, right where
>>> I could also find the example partition. Unfortunately the server would not start anymore then. The error message is:
>>> 
>>> org.apache.directory.server.config.ConfigurationException: Cannot open a cursor to read the configuration on ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config
>>> 
>>> Is there some other way how to create a new partition in M3?
>>> 
>>> Kind regards
>>> Oliver
>> 
> 
> 
> -- 
> Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/


Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Posted by Oliver Schmidt <ol...@arcor.de>.
Hi Pierre-Arnaud,

no, I didn't since I didn't know which indexes are important and I assumed  
that ApacheDS would create those entries for me. So I'll try again after  
having created those indexes. Thanks for the hint! :-)

Kind regards
Oliver

Am 22.09.2011, 15:07 Uhr, schrieb Pierre-Arnaud Marcelot <pa...@marcelot.net>:

> Hi Oliver,
>
> When you created your partition entry, did you also create all the  
> entries underneath it, like indexes for example?
>
> Regards,
> Pierre-Arnaud
>
> On 22 sept. 2011, at 14:59, Oliver Schmidt wrote:
>
>> Hi there,
>>
>> since M2, there is no server.xml file anymore, right? So, I tried to  
>> add a
>> custom partition via Directory Studio under the
>> ou=partitions,ads-directoryServiceId=default,ou=config entry, right  
>> where
>> I could also find the example partition. Unfortunately the server would  
>> not start anymore then. The error message is:
>>
>> org.apache.directory.server.config.ConfigurationException: Cannot open  
>> a cursor to read the configuration on  
>> ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config
>>
>> Is there some other way how to create a new partition in M3?
>>
>> Kind regards
>> Oliver
>


-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi Oliver,

When you created your partition entry, did you also create all the entries underneath it, like indexes for example?

Regards,
Pierre-Arnaud

On 22 sept. 2011, at 14:59, Oliver Schmidt wrote:

> Hi there,
> 
> since M2, there is no server.xml file anymore, right? So, I tried to add a
> custom partition via Directory Studio under the
> ou=partitions,ads-directoryServiceId=default,ou=config entry, right where
> I could also find the example partition. Unfortunately the server would not start anymore then. The error message is:
> 
> org.apache.directory.server.config.ConfigurationException: Cannot open a cursor to read the configuration on ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config
> 
> Is there some other way how to create a new partition in M3?
> 
> Kind regards
> Oliver