Tomcat upgrade

During an attempted upgrade from Tomcat 4 to Tomcat 6 (see Install Tomcat, restarting the server without recompiling the java pages resulted in:
HTTP Status 404 - /embeddedj/gsrcCalendar.do

type Status report

message /embeddedj/gsrcCalendar.do

description The requested resource is not available.
Apache Tomcat/6.0.44

mod_jk upgrade

During the upgrade from mod_jk 1.2.25 to 1.2.26, then JSP pages such as https://chesstst.eecs.berkeley.edu:444/chessj/resetpassword.jsp came back with a 40 (not found) message.

We are trying to upgrade from 1.2.25, /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log says:
[Fri Dec 19 11:31:01.231 2008] [9318:1] [info] init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized

The fix is described in mod_jk 1.2.26 does not work with ssl on apache 2.2.8 The fix is to edit /usr/local/apache/conf/extras/httpd-ssl.conf and httpd-vhosts.conf and add

JkMountCopy On
to each virtual host

We had a case where the http trust calendar was not found, but the https trust calendar was found. Editing /usr/local/apache/conf/tomcat-mod_jk.conf and setting JkLogLevel to debug yields

[Mon Dec 22 21:31:46.297 2008] [3515:1] [debug] jk_translate::mod_jk.c (324 4): missing uri map for www.truststc.org:/trustj/gsrcCalendar.do

in /usr/local/tomcat/logs/mod_jk.log

The problem here was that JkMountCopy On was not in httpd-vhosts.conf.

While updating httpd-vhosts.conf, update httpd-ssl.conf as well so that resetting passwords works. See The requested URL /embeddedj/resetpassword.jsp was not found on this server.