...
Unzip the folder to C:\opt. We will use the convention, C:\opt\apache\tomcat-a.0. The letter a designates an instance. As we scale up, you can have another instance called b, c and so forth.
...
Code Block |
---|
version.bat Using CATALINA_BASE: "E:\opt\apache-tomcat-6.0.26-a.0" Using CATALINA_HOME: "E:\opt\apache-tomcat-6.0.26-a.0" Using CATALINA_TMPDIR: "E:\opt\apache-tomcat-6.0.26-a.0\temp" Using JRE_HOME: "E:\opt\jre1.6.0_20_32-bit" Using CLASSPATH: "E:\opt\apache-tomcat-6.0.26-a.0\bin\bootstrap.jar" Server version: Apache Tomcat/6.0.26 Server built: March 9 2010 1805 Server number: 6.0.26.0 OS Name: Windows 2003 OS Version: 5.2 Architecture: x86 JVM Version: 1.6.0_20-b02 JVM Vendor: Sun Microsystems Inc. |
...
Code Block |
---|
cd C:\opt\apache-tomcat-6.0.26-a.0_32-bit\bin service.bat install "Tomcat instance tomcat-a.0" |
We have now added Tomcat as a service to the windows registry. However, there is no reference yet to what version of java should be used with the service.
...
- Click Start, Run
- Type, regedit and hit Enter to see the registry
- Click Edit, Find
- Search for tomcat-a.0
Now, we will update the registry to point to a specific version of Java,
Code Block | ||
---|---|---|
| ||
cd C:\opt\apache-tomcat-6.0.26-a.0_32-bit\bin tomcat6.exe //US//Tomcat6a --JavaHome=C:\opt\jre1.6.0_20_32-bit tomcat6.exe //US//Tomcat6a --Jvm=C:\opt\jre1.6.0_20_32-bit\bin\client\jvm.dll |
...
Code Block |
---|
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "ApacheTomcatMonitora"="\"C:\\opt\\tomcat\\bin\\tomcat6w.exe\" //MS//Tomcat Instance tomcat-a.0" |
Save the file as Tomcat6a-system-try.reg
...
Code Block | ||
---|---|---|
| ||
tomcat6w.exe "//MS//Tomcat Instance tomcat-a.0" |
Finally log out and log back in. You should now see the tomcat icon on the system tray.
...
To set up another instance of Tomcat, I would call it tomcat-b.1, simply copy the tomcat-a .0 directory, change the ports as outlined in Ubuntu 5.0 Portable Tomcat 6.x & Instances and repeat Automatic Startup and Shutdown of Tomcat and Tomcat Icon on System Tray with adjustment for the different name and directory.
...