This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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..
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)
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 ]