• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Setup multiple instance of Tomcat 5 on Windows XP

 
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..
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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 ]
 
Sheriff
Posts: 67269
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
 
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 ??
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!