You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Andreas Blatzheim <an...@netcologne.de> on 2012/11/22 12:03:51 UTC
New partition in ADS 2.0 M8
Hi,
I'm new to ApacheDS and for sure have some questions.
I try to create my own partition but get some error messages. So here is what I did so far:
0. Install JAVA on the Ubuntu Box
1. Install the .deb package of apache 2.0.0 M8 at a Ubuntu Server.
2. Change the wrapper.conf at /var/lib/<apacheds-dir>/default/conf/wrapper.conf to get the right java-vm
3. Start ApacheDS in console mode and test functions with ApacheDS Studio.
Up to this point everything works fine. However I like to get rid of the dc=example, dc=com partition. So I tried to rename it, which is not possible for the rootDSE.
In addition I tried to follow some descriptions from the mailing list. But that caused some errors in the ApacheDS Studio. As a result I can not load the current config and add a partition.
So I decided to create my own LDIF with the tools of ApacheDS Studio, store them on the server and create a 2nd instance. If I now start the apacheDS Server I got some error messages.
ERRORS:
root@MyServer:/opt/jre/bin# /opt/apacheds-2.0.0-M8/bin/apacheds console mycloud
Running ApacheDS - mycloud...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | [01:47:47] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service.
jvm 1 | org.apache.directory.shared.ldap.model.exception.LdapOtherException
jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
jvm 1 | at org.apache.directory.server.ApacheDsService.initConfigPartition(ApacheDsService.java:284)
jvm 1 | at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:166)
jvm 1 | at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
jvm 1 | at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
jvm 1 | Caused by: java.lang.NullPointerException
jvm 1 | at org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.doDestroy(SingleFileLdifPartition.java:435)
jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.destroy(AbstractPartition.java:118)
jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:85)
jvm 1 | ... 4 more
wrapper | <-- Wrapper Stopped
It create the SCHEMA Partition, but fails with the other settings.
Any Help here?
Versions
Linux = Linux MyServer 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
JAVA = java version "1.7.0_09" | Java(TM) SE Runtime Environment (build 1.7.0_09-b05) | Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
Andreas Blatzheim
Ginsterweg 31
50189 Elsdorf
Mail: andreas.blatzheim@netcologne.de
Phone: +49(0)2274 905017
Mobile: +49(0)151 21285278
Re: New partition in ADS 2.0 M8
Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi,
Maybe the best thing to do would be to use Apache Directory Studio to edit the configuration.
Apache Directory Studio 2.0.0-M3 might not work correctly with ApacheDS 2.0.0-M8 (which is more recent), but our latest nightly build will.
http://directory.apache.org/studio/nightly-builds.html
Right-click on your connection and select "Open Configuration".
From there, it should be easy to create a new partition.
Regards,
Pierre-Arnaud
On 22 nov. 2012, at 12:03, Andreas Blatzheim <an...@netcologne.de> wrote:
> Hi,
> I'm new to ApacheDS and for sure have some questions.
>
> I try to create my own partition but get some error messages. So here is what I did so far:
>
> 0. Install JAVA on the Ubuntu Box
> 1. Install the .deb package of apache 2.0.0 M8 at a Ubuntu Server.
> 2. Change the wrapper.conf at /var/lib/<apacheds-dir>/default/conf/wrapper.conf to get the right java-vm
> 3. Start ApacheDS in console mode and test functions with ApacheDS Studio.
>
> Up to this point everything works fine. However I like to get rid of the dc=example, dc=com partition. So I tried to rename it, which is not possible for the rootDSE.
> In addition I tried to follow some descriptions from the mailing list. But that caused some errors in the ApacheDS Studio. As a result I can not load the current config and add a partition.
> So I decided to create my own LDIF with the tools of ApacheDS Studio, store them on the server and create a 2nd instance. If I now start the apacheDS Server I got some error messages.
>
> ERRORS:
> root@MyServer:/opt/jre/bin# /opt/apacheds-2.0.0-M8/bin/apacheds console mycloud
> Running ApacheDS - mycloud...
> wrapper | --> Wrapper Started as Console
> wrapper | Launching a JVM...
> jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
> jvm 1 |
> jvm 1 | [01:47:47] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service.
> jvm 1 | org.apache.directory.shared.ldap.model.exception.LdapOtherException
> jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> jvm 1 | at org.apache.directory.server.ApacheDsService.initConfigPartition(ApacheDsService.java:284)
> jvm 1 | at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:166)
> jvm 1 | at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
> jvm 1 | at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> jvm 1 | Caused by: java.lang.NullPointerException
> jvm 1 | at org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.doDestroy(SingleFileLdifPartition.java:435)
> jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.destroy(AbstractPartition.java:118)
> jvm 1 | at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:85)
> jvm 1 | ... 4 more
> wrapper | <-- Wrapper Stopped
>
> It create the SCHEMA Partition, but fails with the other settings.
> Any Help here?
>
>
>
>
> Versions
> Linux = Linux MyServer 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> JAVA = java version "1.7.0_09" | Java(TM) SE Runtime Environment (build 1.7.0_09-b05) | Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
>
>
> Andreas Blatzheim
> Ginsterweg 31
> 50189 Elsdorf
>
> Mail: andreas.blatzheim@netcologne.de
> Phone: +49(0)2274 905017
> Mobile: +49(0)151 21285278
>
>
>
>
>
>
Re: New partition in ADS 2.0 M8
Posted by Kiran Ayyagari <ka...@apache.org>.
On Thu, Nov 22, 2012 at 4:33 PM, Andreas Blatzheim <
andreas.blatzheim@netcologne.de> wrote:
> Hi,
> I'm new to ApacheDS and for sure have some questions.
>
> I try to create my own partition but get some error messages. So here is
> what I did so far:
>
> 0. Install JAVA on the Ubuntu Box
> 1. Install the .deb package of apache 2.0.0 M8 at a Ubuntu Server.
> 2. Change the wrapper.conf at
> /var/lib/<apacheds-dir>/default/conf/wrapper.conf to get the right java-vm
> 3. Start ApacheDS in console mode and test functions with ApacheDS Studio.
>
> Up to this point everything works fine. However I like to get rid of the
> dc=example, dc=com partition. So I tried to rename it, which is not
> possible for the rootDSE.
>
you should not edit the rootDSE but the value of the attribute
ads-partitionsuffix of the entry
ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config
and restart the server
(you can rename this entry later to suit your choice, but that is not
critical, the important thing is the value of ads-partitionsuffix)
> In addition I tried to follow some descriptions from the mailing list. But
> that caused some errors in the ApacheDS Studio. As a result I can not load
> the current config and add a partition.
> So I decided to create my own LDIF with the tools of ApacheDS Studio,
> store them on the server and create a 2nd instance. If I now start the
> apacheDS Server I got some error messages.
>
> looks like your config.ldif is corrupted, share your config.ldif with us
if possible
> ERRORS:
> root@MyServer:/opt/jre/bin# /opt/apacheds-2.0.0-M8/bin/apacheds console
> mycloud
> Running ApacheDS - mycloud...
> wrapper | --> Wrapper Started as Console
> wrapper | Launching a JVM...
> jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights
> Reserved.
> jvm 1 |
> jvm 1 | [01:47:47] ERROR
> [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to
> start the service.
> jvm 1 |
> org.apache.directory.shared.ldap.model.exception.LdapOtherException
> jvm 1 | at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> jvm 1 | at
> org.apache.directory.server.ApacheDsService.initConfigPartition(ApacheDsService.java:284)
> jvm 1 | at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:166)
> jvm 1 | at
> org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
> jvm 1 | at
> org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> jvm 1 | Caused by: java.lang.NullPointerException
> jvm 1 | at
> org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.doDestroy(SingleFileLdifPartition.java:435)
> jvm 1 | at
> org.apache.directory.server.core.api.partition.AbstractPartition.destroy(AbstractPartition.java:118)
> jvm 1 | at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:85)
> jvm 1 | ... 4 more
> wrapper | <-- Wrapper Stopped
>
> It create the SCHEMA Partition, but fails with the other settings.
> Any Help here?
>
>
>
>
> Versions
> Linux = Linux MyServer 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18
> 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> JAVA = java version "1.7.0_09" | Java(TM) SE Runtime Environment (build
> 1.7.0_09-b05) | Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed
> mode)
>
>
> Andreas Blatzheim
> Ginsterweg 31
> 50189 Elsdorf
>
> Mail: andreas.blatzheim@netcologne.de
> Phone: +49(0)2274 905017
> Mobile: +49(0)151 21285278
>
>
>
>
>
>
>
--
Kiran Ayyagari
http://keydap.com