Hi Andrea,
On 03/31/2011 05:34 PM, Andrea Ceccanti wrote:
> Hi Ernst,
>
> Il 31/03/11 17.24, Ernst Pijper ha scritto:
>> 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?
> You should use what the VOMS metapackage brings in, i.e. the Sun JDK
> (VOMS has been certified on the Sun JDK)
>
>> 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.
>
> I would not edit any init file by hand. Your edits will be lost at the
> next tomcat update.
> Are you observing any misbehaviour in Tomcat with the configuration
> created by YAIM ?
>
>
> Cheers,
> Andrea
>
>
I guess was just a little confused about these two config file being
sourced. Everything seems to be going ok now. I'm using openjdk but not
sure if that came with the installation. Have to look into that.
Ernst
|