Tomcat on Suse10.0 - won't start

Posted on 2006-04-08
Last Modified: 2010-05-18
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?
Question by:basicinstinct
    LVL 27

    Accepted 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
    LVL 27

    Expert Comment

    P.S. Your JAVA_HOME is a directory, where you can find  bin/java, I.e. it should contain subdirectory bin/
    LVL 23

    Author Comment

    Excellent answer!  
    I shall name my first-born "Nopius".

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now