This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 5122

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
It is sorta covered in the JavaRanch Style Guide.
subject: Tomcat running as service
Similar Threads
Failed to install Tomcat5 Service
an eclipse problem
Shutting down Tomcat
Unabble to run tomcat 5.28
Installing Two Tomcat Instances in Single server for Tomcat Clustering