We use the setenv.sh. (tomcat 4.1xxx) for all custom environment variables
as well as java options. catalina.sh references this script:
# Get standard environment variables
PRGDIR=`dirname $PRG`
CATALINA_HOME=`cd $PRGDIR/.. ; pwd`
if [ -r $CATALINA_HOME/bin/setenv.sh ]; then
.
The form-login-page tag is used to reference the login page, similar to
the way you have the form-error-page tag coded. The form-login-page
should look something like form-login-page/login.jsp/form-login-page,
and the login.jsp page would have the post to j_security_check and the
j_username and