Hi again,
Since everybody was helpful with my previous problem, here's a new one.
I'm still installing the glite 3.2 VOMS server. The first question i
have is:
1) should is use openjdk or sun jdk? Or should it not matter?
2) when running yaim, it is determined where my java installation lives
(JAVA_HOME). This value is then written to the /etc/tomcat5/tomcat5.conf
configuration file. When '/etc/init.d/tomcat start' is executed, the
config /etc/sysconfig/tomcat5 is also sourced. In this config file some
of the exact same variables as in /etc/tomcat5/tomcat5.conf are defined.
The difference is that /etc/sysconfig/tomcat5 is not configured by yaim.
As it happens, /etc/sysconfig/tomcat5 is sourced *after*
/etc/tomcat5/tomcat5.conf is sourced:
<snippet from /etc/init.d/tomcat>
function parseOptions() {
options=""
options="$options $(
awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0,
";" }' \
$TOMCAT_CFG
)"
if [ -r "/etc/sysconfig/${NAME}" ]; then
options="$options $(
awk '!/^#/ && !/^$/ { ORS=" ";
print "export ", $0, ";" }' \
/etc/sysconfig/${NAME}
)"
fi
TOMCAT_SCRIPT="$options $TOMCAT_SCRIPT"
}
/etc/sysconfig/tomcat5 also contains a definition for JAVA_HOME, meaning
that when tomcat is started the wrong value for JAVA_HOME is used. To
resolve this problem, one could comment out all the variables in
/etc/sysconfig/tomcat5 which are also present in
/etc/tomcat5/tomcat5.conf. However, i decided to simply reverse the
order of sourcing in the above function.
My question is whether what i observe is not a mistake i made somewhere
during the installing, but just a 'given' that one should know about and
take care off, somehow.
Thanks,
Ernst
|