File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat running as service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat running as service" Watch "Tomcat running as service" New topic

Tomcat running as service

Roel De Nijs

Joined: Jul 19, 2004
Posts: 8372

Purpose is to run 2 Tomcat instances as seperate services on one machine.

I took these steps:
- I installed a version of a JVM, e.g. j2sdk1.4.2_03
- I have on a server 2 instances of Tomcat installed. I changed the name of the map where the installation files or placed. So instead of "C:\Program Files\Apache Software Foundation\Tomcat 5.0" i named them "C:\Program Files\Apache Software Foundation\Tomcat 5.0 webappA" and C:\Program Files\Apache Software Foundation\Tomcat 5.0 webappB". Is this correct or should i do this in a different way?
- i changed in both server.xml some ports so i can't get a bindException because some port is already in use.
- i started both startup.bat files and they both run without any problem.

here comes the problem: when i use the tomcat5w.exe to install the service the "path to executable" on the tab "General" both point to "C:\Program Files\Apache Software Foundation\Tomcat 5.0 webappA".

Any information would be greatly appreciated
Thanks in advance

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link:
subject: Tomcat running as service
It's not a secret anymore!