Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a a companion article to 5.0 Zero Footprint Tomcat 6.x Instances on Ubuntu.

On Windows we can not make it totally portable (if you want the nice gui system tray and Windows Services entry) but we can make use of multiple instances. If you give up the gui, then it truly is portable

You trade the capability of multiple instances for not being able to having the "windows installer" setup the gui system tray, but that's not a necessary function.

Manually Setup JRE

The main advantage is here is there are no entries in your registry and no automatic updates of Java (which I find can cause problems).

...

Warning

I have proven and working used, service.bat install tomcat0 but never with the period. The period may not work. Somebody validate for me.

 


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.

...

Info

Interestingly using JavaHome instead of jvm in the above commands seems to work too. Not sure of the difference.

 


Refer to the Tomcat Windows Service How-To if you need to configure more options.

...

To set up another instance of Tomcat, I would call it tomcat.1, simply copy the tomcat.0 directory, change the ports as outlined in Ubuntu 5.0 Zero Footprint Tomcat 6.x & Instances. There is one difference in the Ubuntu steps and that is there is no grep command. Instead, provided you have Windows XP or higher you can use findstr,

Code Block
languagebash
netstat -an | findstr LISTEN | findstr 8105
netstat -an | findstr LISTEN | findstr 8109
netstat -an | findstr LISTEN | findstr 8180
netstat -an | findstr LISTEN | findstr 8543

 


Next, repeat Automatic Startup and Shutdown of Tomcat and Tomcat Icon on System Tray with adjustment for the different name and directory.

...