Nov 8, 2011

Access is Denied. Unable to open the service 'Tomcat6'



After installing tomcat (any version) on windows 7 (also in vista i guess) , you will see this error when you restart the system .

Application System Error
Access is Denied.
Unable to open the service 'Tomcat6'

This error is confusing at first because it says "service" . Users will think there is some problem with the tomcat service . But this error is related to the Tomcat Monitor (tomcat6w.exe) and User Account Control (UAC) in windows.

You can fix this issue in 2 ways

1. disable UAC altogether . (not recommended [ i don't have enough knowledge on UAC :-) ] )

2. this is a better approach . in this we are allowing the program to run as administrator always .
    go to /bin . 
    right click on tomcat6w.exe,
    select Properties
    select the Compatibility tab.
    Under Privilege Level, select Run this program as an administrator,
    click OK.

reference : http://technet.microsoft.com/en-us/library/cc709691(WS.10).aspx#BKMK_S2

hope this helps someone.

15 comments:

  1. works like a charm in Windows7! Thank you.

    ReplyDelete
    Replies
    1. As per my experience i think your server just excess by admin so try to these steps.......
      i m sure your problem will be solved

      Follow these steps

      step 1: C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin
      Step 2: now right click in bin folder
      step 3: select properties
      step 4: select sharing tab
      step 5: click on Advance sharing
      step 6: click on top most check box (share this folder )
      and the apply -> Ok

      Now start your server and check your problem has been resolved or not.....

      Delete
  2. Hey thanks The other way i.e run as admin worked for me thnk u

    ReplyDelete
  3. hi when i start tomcat server in eclipse indigo some errors are coming after that automatically its going to stop im getting error like some ports are already using i given other port numbers that time also same thing im getting can plz tell me some solution for this problem
    im using windows 7-64bit
    tomcat 6

    ReplyDelete
  4. Yes it helps ! thanks you !

    ReplyDelete
  5. Thanks Rajasekharan.

    ReplyDelete
  6. thanks. this article is very useful. my problem is solved

    ReplyDelete
  7. works on server 2008 as well, thanks

    ReplyDelete
  8. This has been bugging me for months and now it is gone. Thanks.

    ReplyDelete
  9. Muchas Gracias Funcionó Saludos.
    Thanks a lot of.. ;)

    ReplyDelete