You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Prashant Sakhahari Shinde <pr...@bahwancybertek.com> on 2019/12/05 07:49:06 UTC

[DIRSERVER] [DIRSTUDIO] - Run ApacheDS Server from CommandLine

Hi Support Team,

Seeking help for the below scenario :-

Product Stack Used :-

  *   apacheds-2.0.0.AM25
  *   ApacheDirectoryStudio-2.0.0.v20180908-M14-win32.win32.x86_64

I have installed the ApacheDS server which comes with the Default server configurations that runs as an Windows NT Service on my Windows10 machine.
After that I installed the ApacheDirectoryStudio and created a new Server (ApacheDS 2.0.0) to add entries from the existing LDIF file I had.

The configuration files were created under the directory "C:\Users\<<UserName>>\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.ldapservers\servers"
Earlier I used to Start-Stop the server from the ApacheDirectoryStudio itself, but now I want to Start-Stop the server from CommandLine and/or register the new Server as a NT Service.

For that, I copied the configurations folder created with ApacheDirectoryStudio to the below location :-

  *   C:\Program Files (x86)\ApacheDS\instances

In the CommandLine I am executing the below command :-
"C:\Program Files (x86)\ApacheDS\bin\wrapper.exe" -s "C:\Program Files (x86)\ApacheDS\instances\efcd4da8-49ea-4957-83ef-9c976782215b\conf\wrapper-instance.conf" "set.INSTANCE_DIRECTORY=C:\Program Files (x86)\ApacheDS\instances\efcd4da8-49ea-4957-83ef-9c976782215b" set.INSTANCE=MyLDAP

But getting below error :-
Attempting to start ApacheDS - MyLDAP as an NT service.
Calling StartServiceCtrlDispatcher...please wait.
StartServiceControlDispatcher failed!

Where am I going wrong?
Kindly help with the steps to achieve this.

------------------------------
Kind Regards,
Prashant Shinde,
+91 8857802755,
Bahwan CyberTek

----------------------------------------------------------------------------------------------------------------------- The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify us immediately by responding to this email and then delete it from your system. Bahwan Cybertek is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.