I added JAVA_HOME to the end of the j2ee file and it still does not
work.

cat /etc/sysconfig/j2ee

## Path:        Network/WWW/J2EE/Tomcat
## Type:        string
## Default:     "/usr/share/tomcat"
#
#  This varible defines the CATALINA_HOME to start the service tomcat.
#  See /usr/share/doc/packages/tomcat/README.SuSE for more information.
#
CATALINA_HOME="/usr/share/tomcat"

## Path:        Network/WWW/J2EE/Tomcat
## Type:        string
## Default:     ""
#
#  This varible defines the CATALINA_BASE to start the service tomcat.
#  If the value is empty, it is set to $CATALINA_HOME
#  See /usr/share/doc/packages/tomcat/README.SuSE for more information.
#
CATALINA_BASE="/srv/www/tomcat/base/"
JAVA_HOME="/usr/lib/java"

 

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Aria Bamdad
Sent: Tuesday, May 01, 2007 2:00 PM
To: [email protected]
Subject: Re: Tomcat/Java problem

Alan,

On SLES 10, tomcat looks at /etc/sysconfig/j2ee for the definition of
these variables.  Could it be that you have JAVA_HOME set to something
in this file?

Aria.
On Tue, 01 May 2007 13:12:27 -0400 Levy, Alan said:
>The /etc/init.d/tomcat script just does a
>"$CATALINA_HOME/bin/startup.sh" which calls Catalina.sh. This script
>just references $JAVA_HOME which is already set to the 1.5 directory.
>
>#./catalina.sh
>Using CATALINA_BASE:   /usr/jakarta-tomcat-5.0.28
>Using CATALINA_HOME:   /usr/jakarta-tomcat-5.0.28
>Using CATALINA_TMPDIR: /usr/jakarta-tomcat-5.0.28/temp
>Using JAVA_HOME:       /usr/lib/java
>
>
>=20
>-----Original Message-----
>From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
>Mark Post
>Sent: Tuesday, May 01, 2007 12:49 PM
>To: [email protected]
>Subject: Re: Tomcat/Java problem
>
>  >>> On Tue, May 1, 2007 at 12:36 PM, in message
><[EMAIL PROTECTED]>,
>"Levy,
>Alan" <[EMAIL PROTECTED]> wrote:=20
>
>-snip-
>> Although I still have Java 1.42 in my /opt directory, why is Tomcat
>> starting with that java and not the 1.5 that's in my path ?
>
>I would look at the script that starts Tomcat.
>
>
>Mark Post
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or
>visit
>http://www.marist.edu/htbin/wlvindex?LINUX-390
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or visit
>http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to