Tomcat 7 console and/or tray icon not showing up when running as a windows service

13,361

The solution is that go to the tomcat/bin folder in a command prompt window then try something like that: tomcat8w //MS//Tomcat8

And that's it, the monitor service appear.

Share:
13,361
user152484
Author by

user152484

Updated on July 01, 2022

Comments

  • user152484
    user152484 almost 2 years

    I have installed Tomcat7 as a service(service.bat). It starts and works fine as a service, but I don't see a console that usually comes up when you manually start the server using Tomcat7.exe or startup.bat.

    Btw, I'm on windows 7 and I have tried a few things from here - http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

    I can put the 'Tomcat7w monitor application' to the tray using - tomcat7w //MS//tomcat7w

    But I need a console and and/or a tray icon for the Tomcat7 service itself.

  • user152484
    user152484 over 11 years
    I have tried - C:\> tomcat7 //TS//Tomcat7 but this tries to start the service with the console even if the service is already running.
  • user152484
    user152484 over 11 years
    That will delete the service. And I don't think I can start it again before installing it as a service again, but this this is not what I want.
  • Mazaka
    Mazaka over 11 years
    I understand my bad didn't pay attention.
  • Mazaka
    Mazaka over 11 years
    I tried installing tomcat via service.bat but it wont start a console while tomcat service is installing and working after starting
  • user152484
    user152484 over 11 years
    Yeah exactly my problem. The docs say that a console is default when running as a service.
  • Mazaka
    Mazaka over 11 years
    On this site I found this remark. A flip side of running Tomcat as a service is you need to read the error messages from $CATALINA_HOME\logs instead of the Tomcat console. So I think it is also a down side for tomcat7 but did not find confirmation yet.
  • user152484
    user152484 over 11 years
    Even I found something like that here But i don't understand this part - "Note that when choosing to run Tomcat at the end of installation, the tray icon will be used even if Tomcat was installed as a service."
  • Mazaka
    Mazaka over 11 years
    They are talking about the windows installer the exe file not a extracted archive. it took me a little while to figure it out.
  • user152484
    user152484 over 11 years
    Oh ok. Makes sense. Btw, thanks for SnakeTail. Should do the job for now.
  • Bryji
    Bryji about 9 years
    What does "//MS" refer to?
  • davidjmcclelland
    davidjmcclelland almost 9 years
    MS = Monitor Service. This suggested solution did not work for me (Tomcat7/Windows7), BTW - still looking for a solution.
  • darul75
    darul75 about 8 years
    it has worked fine, just need to replace //MS//Tomcat8 by your Tomcat Service name, example //MS//MyTomcatService. So previously by retrieving correct name into services listing (run command >> "services.msc")