wrapper | OpenSCManager failed - Access is denied. (0x5)

user2408070 picture user2408070 · Jul 15, 2014 · Viewed 17.7k times · Source

I am trying to install Archiva on windows 8.1 pro (64 bit) and I am continuously getting the same error as below

wrapper | OpenSCManager failed - Access is denied. (0x5).

I logged in as administrator only. But still I am getting the same error. Most of the answers for the same problem I am seeing it for VISTA and 7 etc.. But not for Windows8.1 Pro (64 bit)

Answer

Brett Porter picture Brett Porter · Jul 17, 2014

You need to run that command as an administrator.

  • Right-click on the command prompt entry in the start menu / task bar
  • Select "Run as Administrator"
  • Navigate to the Archiva installation directory

Then run:

bin\archiva install
net start archiva