• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 695
  • Last Modified:

Tomcat on Suse10.0 - won't start

Trying to get Tomcat running on SUSE 10. After a bit of pain I have finally got it installed, I have got it enabled, but when I try to start it in YAST I get the following message:

"/etc/init.d/tomcat5 start returned 7 (program is not running):
Starting Tomcat (/usr/share/tomcat5)..failed"

So I checked /var/log/tomcat5/base/start.log and found this single line:
"No JAVA_HOME specified in @@@TCCONF@@@/tomcat5.conf and no java found, exiting..."

Anywho, I didn't have a JAVA_HOME environment set, so I set one, but didn't seem to make any difference - I'm thinking it needs to be in the tomcat5.conf file, but I can't find that anywhere on my system.
I set JAVA_HOME to: /usr/java/j2sdk1.4.2_11 - java commands are working just fine on the command line.

'java -version' gives me this: java version "1.5.0_03"

Any ideas?
  • 2
1 Solution
export JAVA_HOME

insert above 2 lines (not in the 1st line, but near to the top) to tomcat startup script: /etc/init.d/tomcat5
P.S. Your JAVA_HOME is a directory, where you can find  bin/java, I.e. it should contain subdirectory bin/
basicinstinctAuthor Commented:
Excellent answer!  
I shall name my first-born "Nopius".

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now