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/21 07:30:50 UTC

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

Hi ApacheDS Experts,

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

Re: [DIRSERVER] [DIRSTUDIO] - Unable to Run ApacheDS Server from CommandLine

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
I'm not sure someone tried that before.

Do you get any additional info from any logfile?

May there be file permission issues when you copy from your user folder
to C:\Program Files?

Can you just create a normal server and export the data from the Studio
server and import into the real server?

Kind Regards,
Stefan

On 12/21/19 8:30 AM, Prashant Sakhahari Shinde wrote:
> Hi ApacheDS Experts,
> 
> 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
> ----------------------------------------------------------------------------------------------------------------------- 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.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org


Re: Invalid signature file Digest for Manifest | 2.0.0.AM26

Posted by Emmanuel Lécharny <el...@gmail.com>.
Hi !

have a look at 
https://stackoverflow.com/questions/34855649/invalid-signature-file-digest-for-manifest-main-attributes-exception-while-tryin, 
this may provide a workaround.

On 30/04/2021 19:11, Krish Dey wrote:
> Invalid signature file Digest for Manifest main attributes.

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org


Invalid signature file Digest for Manifest | 2.0.0.AM26

Posted by Krish Dey <kr...@gmail.com>.
After upgrading to the apacheds 2.0.0.AM26 version, my existing test cases are failing with the error.

Invalid signature file Digest for Manifest main attributes.

I understand I have to use shade plugin for runtime, but why the Junit tests are failing no clue.
Can someone help here?

Thanks