If you use apache+mod_jserv and tomcat on NT, here's a way to get apache to start/stop/watch/restart Tomcat with mod_jserv (like it did for JServ). What you end up with is the ability to switch mod_jserv between the JServ or Tomcat engine simply by commenting out one of the following lines in jserv.conf: ApJServProperties "c:/apps/JServ/conf/jserv.properties" #ApJServProperties "c:/apps/JServ/conf/tomcat.properties" Start by copying your jserv.properties to tomcat.properties and add/change the following lines: # where your jdk is wrapper.bin=c:\dev\jdk1.3\bin\java.exe # for built in javac wrapper.classpath=c:\dev\jdk1.3\lib\tools.jar # where your tomcat is wrapper.bin.parameters=-Dtomcat.home="c:\apps\tomcat" # for tomcat main class wrapper.class=org.apache.tomcat.startup.Tomcat # set up env variables wrapper.env=JAVA_HOME=c:\dev\jdk1.3 wrapper.env=TOMCAT_HOME=c:\apps\tomcat # add tomcat/classes path wrapper.classpath=c:\apps\tomcat\classes # add jar files from your tomcat/lib directory wrapper.classpath=c:\apps\tomcat\lib\webserver.jar wrapper.classpath=c:\apps\tomcat\lib\jasper.jar wrapper.classpath=<add a line for each of the remaining jar files> The final missing piece is a modified jserv_wrapper_win.c file which properly launches the JServ and Tomcat engines. The change for jserv_wrapper_unix.c is similar. Download it here: http://www.rcreations.com/temp/jserv_wrapper_win.c Compile a new ApacheModuleJServ.dll and replace. Start Apache via command line or NT service and Tomcat will start as well (if ApJServManual is off). If the Tomcat JVM crashes, Apache will restart it. As an added bonus, this version of jserv_wrapper_win.c file also has better restart support for when the child Apache process crashes.
