Wednesday, June 20, 2007

"failed to install tomcat5 service" woes?

Trying to install Tomcat 5.x on your XP machine and getting this message:

"failed to install tomcat5 service" Abort, Retry, Ignore...?

The problem could well be that you have already installed Tomcat5 before on this machine and windows is not happy trying to install a second Tomcat5 service. In my case I had installed Tomcat5 before and had deleted it but the old service was still hanging round. The solution is to remove the old service and then the install will continue along happily.

To see if you already have a Tomcat service, you can look in the Service window (under Start-Control Panel-Administrative Tools-Services) and look for a service called "Apache Tomcat". That is the sucker. Right-click and look at the Properties. Check the service name - it will be "Tomcat5". Stop the service if it is running.

Then fire up a command window and run this command:

>sc query tomcat5

This will give you details of the service (if you spell it right). To delete the service:

> sc delete tomcat5

and you should get a nice "[SC] DeleteService SUCCESS" message.

Now you can continue your install!

4 comments:

Unknown said...

frind thanks alot thank you sooooooooooooooooooooooooooooooooooooooooo much frnd......
i tried from still 2days arround the net but no one else not giving this solution u given right one thak you soooooooooooo much

Benjamin said...

Thank you so much man!

Benjamin said...

thanks so much man!

elektron said...

Thanks a ton!!