Error while adding a new partition
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > Error while adding a new partition




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Error while adding a new partition  
chago


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-19-07 06: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.MutableBTreePar
titionConfiguration">
<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.JdbmPartit
ion"
/>
<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.getPartitio
n(DefaultPartitionNexus.java:1114)
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.search(Defa
ultPartitionNexus.java:970)
at
org.apache.directory.server.core.referral.ReferralService.init(ReferralServi
ce.java:285)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register0(Inte
rceptorChain.java:473)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register(Inter
ceptorChain.java:393)
at
org.apache.directory.server.core.interceptor.InterceptorChain.init(Intercept
orChain.java:258)
at
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultD
irectoryService.java:1006)
at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDire
ctoryService.java:255)
at
org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialConte
xt(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.







[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Stefan Zoerner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-19-07 06: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







[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
chago


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM


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.







[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Stefan Zoerner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM

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?







[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
chago


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM


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.







[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Stefan Zoerner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM

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' availabl
e.
> 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 t
o
> 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?








[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM

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?
>
>
>






[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM

On Nov 19, 2007 5:24 PM, Alex Karasulu <akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> w
rote:
> 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.o
rg> wrote: 
>






[ Post a follow-up to this message ]



    Re: Error while adding a new partition  
Emmanuel Lecharny


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-20-07 12:11 AM

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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register