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.
Author by
user152484
Updated on July 01, 2022Comments
-
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 over 11 yearsI have tried - C:\> tomcat7 //TS//Tomcat7 but this tries to start the service with the console even if the service is already running.
-
user152484 over 11 yearsThat 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 over 11 yearsI understand my bad didn't pay attention.
-
Mazaka over 11 yearsI tried installing tomcat via service.bat but it wont start a console while tomcat service is installing and working after starting
-
user152484 over 11 yearsYeah exactly my problem. The docs say that a console is default when running as a service.
-
Mazaka over 11 yearsOn 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 over 11 yearsEven 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 over 11 yearsThey are talking about the windows installer the exe file not a extracted archive. it took me a little while to figure it out.
-
user152484 over 11 yearsOh ok. Makes sense. Btw, thanks for SnakeTail. Should do the job for now.
-
Bryji about 9 yearsWhat does "//MS" refer to?
-
davidjmcclelland almost 9 yearsMS = Monitor Service. This suggested solution did not work for me (Tomcat7/Windows7), BTW - still looking for a solution.
-
darul75 about 8 yearsit 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")