Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The specified service does not exist as an installed service

Tags:

tomcat

I am getting this error from tomcat:

The specified service does not exist as an installed service.
Unable to open the service “tomcat8”

Then application will not start at all,

So I opened command line and installed the service:

    tomcat8.exe //IS//tomcat_8_ServiceName    

But still facing the same issue
Assuming i have multiple tomcats on the same box,
Where is the exe file tomcat8w.exe getting the service name from?

Print Screen:

like image 537
JavaSheriff Avatar asked May 10 '17 18:05

JavaSheriff


1 Answers

After a few hours of struggle I installed new tomcat using the Service installer just to see what is it doing, apparently the installer changes the name of the executable .exe file to match the service name.

so if you run

 tomcat8w.exe  

It will look for service name: tomcat8

So I went back to my old tomcat directory and after installing the service using the command:

 tomcat8.exe //IS//tomcat_8_ServiceName  

I renamed the executable file from tomcat8w.exe to tomcat_8_ServiceNamew.exe

Now its working like a charm!

like image 166
JavaSheriff Avatar answered Oct 21 '22 16:10

JavaSheriff