aspose file tools*
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
Author

Tomcat running as service

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5408
    
  13

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
http://www.javaroe.be/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat running as service