Score:0

Setup a second Tomcat8 instance as a service in Windows

jp flag

I'm working with a Windows machine that is used for many production applications. There's already a Tomcat8 instance running as a service and located at C:\Apache Software Foundation\Tomcat8.5 . I can't by any means edit anything (scripts, configuration parameters etc.) in this folder because it is not my application and I don't want to mess up what is already up and running. This Tomcat instance is running on port 8080 as a service on Windows.

I have created another Tomcat instance, this time having path C:\MyTomcatApp. I have set it up in order for it to run on port 8090. If I run it using the startup.bat script in the bin directory, it works perfectly fine. However, if I try to set it up as a service with the service.bat script, the moment I run the service it automatically runs the startup script in C:\Apache Software Foundation\Tomcat8.5\bin and not the startup script of my Tomcat on the different path. I suspect this has something to do with the CATALINA_HOME variable, right?

I would like to install my Tomcat application as a service as well. What is the easiest way to do so? I only managed to find guides that would make me edit and move stuff for both Tomcat instances, but as I said I can only act on mine. I'm clearly missing some configuration steps. I will probably have to edit the other ports. After that, what do I have to do?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.