Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Having multiple Tomcat instances on your development machine is great. Here's how I usually do it for Windows (the important parts for setup are in steps 2, 3, 4 and 5):</p> <ol> <li>Install a copy of Tomcat 6 to a directory (like <em>C:\apache-tomcat-6.0.20</em>).</li> <li>Copy the <em>conf</em> directory to another directory (like <em>C:\tomcat-1</em>)</li> <li>Under <em>C:\tomcat-1</em>, create a <em>bin</em> directory</li> <li><p>In the <em>C:\tomcat-1\bin</em> directory, create a file called <em>startup.bat</em> that reads like this:</p> <p><code>set CATALINA_BASE=C:\tomcat-1</code></p> <p><code>set CATALINA_HOME=C:\apache-tomcat-6.0.20</code></p> <p><code>C:\apache-tomcat-6.0.20\bin\startup.bat</code></p></li> <li><p>In the <em>C:\tomcat-1\bin</em> directory, create a file called <em>shutdown.bat</em> that reads like this:</p> <p><code>set CATALINA_BASE=C:\tomcat-1</code></p> <p><code>set CATALINA_HOME=C:\apache-tomcat-6.0.20</code></p> <p><code>C:\apache-tomcat-6.0.20\bin\shutdown.bat</code></p></li> <li><p>OPTIONAL: create a file called <em>setenv.bat</em> in the <em>C:\tomcat-1\bin</em> directory to set any environment variables mentioned in <em>C:\apache-tomcat-6.0.20\bin\catalina.bat</em>. This is the place to set system properties, JPDA addresses, etc.</p></li> <li>Create the <em>logs</em>, <em>temp</em>, <em>webapps</em> and <em>work</em> directories under <em>C:\tomcat-1</em></li> <li>From the <em>C:\tomcat-1</em> directory, run <em>bin\startup.bat</em></li> <li>Repeat for your other installs from step 2 for as many tomcat instances as you need.</li> </ol> <p>Try not to install Tomcat in a directory that has spaces in its name. It should work, but you'll experience fewer problems that way. I do not know how this would work if you were using the "tomcat as a service" option for Windows.</p> <p>From here, you should be able to isolate tomcat instances. Just be sure to edit your <em>conf\server.xml</em> file so that the shutdown ports and HTTP connector ports don't interfere with other Tomcat instances that may be running. I usually assign values like 8005, 8006, 8007, etc. for the shutdown port and 8080, 8081, 8082, etc. for the HTTP connector port. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload