Apache Directory Project - Error while adding a new partition

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > November 2007 > Error while adding a new partition





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error while adding a new partition
chago

2007-11-19, 1:11 pm


I am trying to add a partition that is dc=mydomain,dc=com

I have added the following to the spring configuration:

<property name="partitionConfigurations">
<set>
<ref bean="examplePartitionConfiguration"/>
<ref bean="mydomainPartitionConfiguration"/>
</set>
</property>

<bean id="mydomainPartitionConfiguration"
class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">
<property name="id" value="mydomain" />
<property name="cacheSize" value="100" />
<property name="suffix" value="dc=mydomain,dc=com" />
<property name="partitionClassName"

value="org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition"
/>
<property name="optimizerEnabled" value="true" />
<property name="synchOnWrite" value="true" />
<property name="indexedAttributes">...</property>
<property name="contextEntry">
<value>
objectClass: top
objectClass: domain
objectClass: extensibleObject
dc: mydomain
</value>
</property>
</bean>


Here is the exception I am receiving at server startup:
[13:25:25] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on
null.init(InstallationLayout, String[])
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException:
0.9.2342.19200300.100.1.25=mydomain,0.9.2342.19200300.100.1.25=com
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.getPartition(DefaultPartitionNexus.java:1114)
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.search(DefaultPartitionNexus.java:970)
at
org.apache.directory.server.core.referral.ReferralService.init(ReferralService.java:285)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register0(InterceptorChain.java:473)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register(InterceptorChain.java:393)
at
org.apache.directory.server.core.interceptor.InterceptorChain.init(InterceptorChain.java:258)
at
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1006)
at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:255)
at
org.apache.directory.server.core.jndi.AbstractContextFactory. getInitialContext(AbstractContextFactory
.java:124)
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:97)
at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
at
org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:55)
at
org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)

FWIW, the mydomain partition is created on the hard disk.

Anyone know what might be wrong?

-- jim
--
View this message in context: http://www.nabble.com/Error-while-a....html#a13842275
Sent from the Apache Directory Project mailing list archive at Nabble.com.


Stefan Zoerner

2007-11-19, 1:11 pm

Hi Jim!

chago wrote:
> I am trying to add a partition that is dc=mydomain,dc=com


> FWIW, the mydomain partition is created on the hard disk.
>
> Anyone know what might be wrong?


Which version of ApacheDS do you use?
Greetings from Hamburg,
Stefan


chago

2007-11-19, 7:11 pm


I'm using Apache DS 1.5.1 on a Windows box with Java 6.


Stefan Zoerner-2 wrote:
>
> Which version of ApacheDS do you use?
> Greetings from Hamburg,
> Stefan
>
>
>


--
View this message in context: http://www.nabble.com/Error-while-a....html#a13844576
Sent from the Apache Directory Project mailing list archive at Nabble.com.


Stefan Zoerner

2007-11-19, 7:11 pm

chago wrote:
> I'm using Apache DS 1.5.1 on a Windows box with Java 6.


I have tested your configuration, and it works fine in my environment.
Unfortunately, I have only a Windows box with a Java 5 VM here, so this
might be the difference.

Anybody with Java 6 able to check?


chago

2007-11-19, 7:11 pm


I have just tried it with JDK 1.5.0_06 by changing the Java version in the
apacheds.conf file. It failed at the same location.

I assume that the problem is related to the fact that I am trying to add
another 'dc=com' suffix? I say this because if I comment out the example
partition, the server starts up fine with my 'dc=mydomain,dc=com' available.
If I include both, the example and mydomain partitions, it fails with the
exception.

<property name="partitionConfigurations">
<set>
<!-- <ref bean="examplePartitionConfiguration"/> -->
<ref bean="mydomainPartitionConfiguration"/>
</set>
</property>

I would of thought it is a bug except that you got it working on your
setup...

Can you attach your whole server.xml file for me to compare, or email it to
me at nabble at visualxs dot com?

Thanks,
Jim


Stefan Zoerner-2 wrote:
>
> chago wrote:
>
> I have tested your configuration, and it works fine in my environment.
> Unfortunately, I have only a Windows box with a Java 5 VM here, so this
> might be the difference.
>
> Anybody with Java 6 able to check?
>
>
>


--
View this message in context: http://www.nabble.com/Error-while-a....html#a13846219
Sent from the Apache Directory Project mailing list archive at Nabble.com.


Stefan Zoerner

2007-11-19, 7:11 pm

chago wrote:
> I have just tried it with JDK 1.5.0_06 by changing the Java version in the
> apacheds.conf file. It failed at the same location.
>
> I assume that the problem is related to the fact that I am trying to add
> another 'dc=com' suffix? I say this because if I comment out the example
> partition, the server starts up fine with my 'dc=mydomain,dc=com' available.
> If I include both, the example and mydomain partitions, it fails with the
> exception.
>
> <property name="partitionConfigurations">
> <set>
> <!-- <ref bean="examplePartitionConfiguration"/> -->
> <ref bean="mydomainPartitionConfiguration"/>
> </set>
> </property>
>
> I would of thought it is a bug except that you got it working on your
> setup...
>
> Can you attach your whole server.xml file for me to compare, or email it to
> me at nabble at visualxs dot com?


You are right. In the tests I made the mistake to use a running instance
and only added your partition. No suffix with .com was present in my
server. Now I copied it once again as yourdomain.com and get the same
error you have.

So I suppose you are right: It is probably a major bug. I don't think
that it is forbidden to run several partitions with the same suffix .com

Thoughts?



Alex Karasulu

2007-11-19, 7:11 pm

You can have the following:

foo.com
bar.com
bar.bar.com
example.com
www.zipit.com

You cannot have:

example.com
www.example.com

Basically a partition's root entry (at the suffix) presently cannot
subordinate to anything but the nexus. I hope we can change that at
some point. I filed a JIRA on this.

Alex

On Nov 19, 2007 5:09 PM, Stefan Zoerner <stefan-EQq9qWhC7IA@public.gmane.org> wrote:
> chago wrote:
>
> You are right. In the tests I made the mistake to use a running instance
> and only added your partition. No suffix with .com was present in my
> server. Now I copied it once again as yourdomain.com and get the same
> error you have.
>
> So I suppose you are right: It is probably a major bug. I don't think
> that it is forbidden to run several partitions with the same suffix .com
>
> Thoughts?
>
>
>


Alex Karasulu

2007-11-19, 7:11 pm

On Nov 19, 2007 5:24 PM, Alex Karasulu <akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> wrote:
> You can have the following:
>
> foo.com
> bar.com
> bar.bar.com


Ooooops the above is not legal (doh!):

> example.com
> www.zipit.com
>
> You cannot have:
>
> example.com
> www.example.com
>
> Basically a partition's root entry (at the suffix) presently cannot
> subordinate to anything but the nexus. I hope we can change that at
> some point. I filed a JIRA on this.
>
> Alex
>
>
> On Nov 19, 2007 5:09 PM, Stefan Zoerner <stefan-EQq9qWhC7IA@public.gmane.org> wrote:
>


Emmanuel Lecharny

2007-11-19, 7:11 pm

Alex Karasulu wrote:
> You can have the following:
>
> foo.com
> bar.com
> bar.bar.com
> example.com
> www.zipit.com
>
> You cannot have:
>
> example.com
> www.example.com
>
> Basically a partition's root entry (at the suffix) presently cannot
> subordinate to anything but the nexus. I hope we can change that at
> some point. I filed a JIRA on this.
>

I _thought_ it was possible to have such a configuration. At least, I'm
pretty sure that I coded the partition cache in order to accept such a
subordinate partition, but I guess it's not enough... I should have
added some tests :/

The current documentation (would the wiki be up and running :/ )
describe such a configuration, AFAIR.

Emmanuel.

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com