The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomcat error

Discussion in 'General Discussion' started by mail2sacp, Jul 19, 2007.

  1. mail2sacp

    mail2sacp Well-Known Member

    Joined:
    Feb 25, 2007
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    It seems that tomcat is not working on my server.

    I am getting following error while I try to start it.
    I start it using [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# ./startup.sh
    ----------------------------------------------------------
    Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    At least one of these environment variable is needed to run this program
    -----------------------------------------------------------

    If any solution please update.

    -Mail2Sacp.
     
  2. johnyqqq

    johnyqqq Member

    Joined:
    Feb 13, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    do a ls -l /usr/java/ do see if java is installed. If not try downloading and installing.
    In the Tomcat startup.sh, add
    export JAVA_HOME=/usr/java/WHATEVER_JDK_VERSION

    You may also want to consider NGASI AppServer Manager (http://www.ngasi.com)
    which automates the above tasks as well as enables private jvm java hosting
    with cPanel and other control panels.
     
  3. ashokpomnar

    ashokpomnar Active Member

    Joined:
    Sep 30, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hey,
    Try to first run following command then start tomcat
    export JAVA_HOME="/usr/local/jdk"
    export CLASSPATH=".:/usr/local/jdk/lib/classes.zip"
     
Loading...

Share This Page