wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Setup multiple instance of Tomcat 5 on Windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setup multiple instance of Tomcat 5 on Windows XP" Watch "Setup multiple instance of Tomcat 5 on Windows XP" New topic
Author

Setup multiple instance of Tomcat 5 on Windows XP

crossedge
Greenhorn

Joined: Mar 29, 2006
Posts: 2
I would like to setup my machine and be able to start 2 instance of tomcat independent from each other. I was able to install Tomcat 5. To create another instance i tried copying the tomcat folder and changed the ports on the server.xml file. This doesn't seem to work. Can anyone show me the correct way to do it? thanks..
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

hi,

2 ways of doing it. i did both myself and both work without any problem

1.
install a tomcat and change installation path to e.g. Tomcat 5 I1
install a second tomcat and change installation path to e.g. Tomcat 5 I2

change the 3 ports in each server.xml so you don't have conflicts for starting up or shutting down. the ports are
- HTTP port
- AJP port
- Shutdown port

2.
- install a tomcat
- make a seperate folder for each instance you want
- put /conf, /webapps, /work, en /logs directories in this new directory
you can also
- also change the 3 ports
- if you want to startup as service or with the bat-file you have to set the variables to the appropriate values:
set JAVA_HOME=... (path to java home)
set CATALINA_HOME=... (path to standard installation of tomcat)
set CATALINA_BASE=... (path to directory of the instance)

good luck!


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
crossedge
Greenhorn

Joined: Mar 29, 2006
Posts: 2
Thanks . . i've tried the first option and it now works but I had to uninstall the current installed tomcat and used the zip files rather that the exe installer to install tomcat.
[ March 30, 2006: Message edited by: crossedge ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

"crossedge",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ruben Paschoarelli
Greenhorn

Joined: Jul 04, 2006
Posts: 1
They are obtained to make running with versions 5.0 and 5.5 at the same time ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setup multiple instance of Tomcat 5 on Windows XP
 
Similar Threads
Tomcat under Websphere Application Developer?
Tomcat under Websphere Application Developer?
JDBC Pooling intance
Question for Matthew Moodie
Tomcat crash recovery?