Unable to open the service 'Tomcat7'

前端 未结 5 1326
傲寒
傲寒 2021-01-03 20:38

Hi I installed Apache Tomcat 7 through windows installer.And just restarted my system and Im getting the Error

Application System Err

5条回答
  •  时光取名叫无心
    2021-01-03 21:19

    This issue appears to be related to the Windows User Access Control (UAC) preventing the Tomcat Service Manager from kicking off. I ran into this issue with Tomcat 6 on Windows Server 2012, even though I installed using "Run as administrator". I was able to eliminate the error popup on startup by following the steps already outlined in this answer. However, the Service Manager icon was not appearing in the Task Tray when I logged in.

    Try the following work around to get the Service Manager to start. Unfortunately, I was only able to get it to work for my user account, not for all users who log in. Also, I've only tested this in Windows Server 2012. Please leave a comment if you get it working in another environment (Windows 7, Windows 8, etc.).

    1. Open Task Scheduler and create a privileged, on demand task as described in this article.
      • On the General tab, take note of the Name you give the task, as it'll be important later (using foo in this example).
      • On the Actions tab:
        • Browse for the Tomcat7w.exe (or whatever the appropriate version/filename is for the service manager) in your CATALINA_HOME/bin directory.
        • Set "Add arguments" to //MS//Tomcat7 (replace Tomcat7 with whatever your Tomcat service is named if it's a different name/version).

    2. Open your Startup folder (Run shell:startup) and create a new Shortcut:
      • For the location of the item, type schtasks /run /TN "foo" where foo is the name you gave to the Task when you created it.

    3. Restart and hopefully you'll get no error (if you followed the already provided instructions) and have the Tomcat Service Manager displaying in your task tray.

提交回复
热议问题