This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setup multiple instance of Tomcat 5 on Windows XP

 
crossedge
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10230
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
crossedge
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Ruben Paschoarelli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are obtained to make running with versions 5.0 and 5.5 at the same time ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic