|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Error while adding a new partitionI 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 |
|
|
Re: Error while adding a new partitionHi 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 |
|
|
Re: Error while adding a new partitionI'm using Apache DS 1.5.1 on a Windows box with Java 6.
|
|
|
Re: Error while adding a new partitionchago 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? |
|
|
Re: Error while adding a new partitionI 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
|
|
|
Re: Error while adding a new partitionchago 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? |
|
|
Re: Error while adding a new partitionYou 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@...> wrote: > 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? > > > |
|
|
Re: Error while adding a new partitionOn Nov 19, 2007 5:24 PM, Alex Karasulu <akarasulu@...> 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@...> wrote: > > 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? > > > > > > > |
|
|
Re: Error while adding a new partitionAlex 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. > 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 |
| Free embeddable forum powered by Nabble | Forum Help |