Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, I'm pleased to do my first post here, since I'm pretty new to Linux. My system: Fedora 5 Enteriprise edition Virtual Machine WMWare Tomcat: 6.0.33 installed under my ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4

    Tomcat don't get started

    Hi all,

    I'm pleased to do my first post here, since I'm pretty new to Linux.

    My system: Fedora 5 Enteriprise edition Virtual Machine WMWare
    Tomcat: 6.0.33 installed under my user xxx
    Jdk: 1.6.0_12 installed under my user xxx

    When I type ./startup.sh the output is:

    Using CATALINA_BASE: /home/egiallau/apache-tomcat-6.0.33
    Using CATALINA_HOME: /home/egiallau/apache-tomcat-6.0.33
    Using CATALINA_TMPDIR: /home/egiallau/apache-tomcat-6.0.33/temp
    Using JRE_HOME: /home/egiallau/jdk1.6.0_12/bin
    Using CLASSPATH: /home/egiallau/apache-tomcat-6.0.33/bin/bootstrap.jar

    I suppose, having read the doc, that all the variables are set fine otherwise I should get an error.

    Once on the browser at localhost:8080 no server are listening here.

    Actually typing:

    netstat -anlp | grep 8080 -> nothing
    ps -ef | grep 'tomcat' ->
    root 17960 16683 0 13:45 pts/1 00:00:00 grep tomcat

    Does anyone can help me to figure out what the problem could be?

    Many thanks in advance,

    Ettore.


    PS.
    My catalina.out



    WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found
    java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found
    <<No stacktrace available>>
    WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
    <<No stacktrace available>>
    Exception during runtime initialization
    java.lang.ExceptionInInitializerError
    <<No stacktrace available>>
    Caused by: java.lang.NullPointerException
    <<No stacktrace available>>
    WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found
    java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found
    <<No stacktrace available>>
    WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
    <<No stacktrace available>>
    Exception during runtime initialization
    java.lang.ExceptionInInitializerError
    <<No stacktrace available>>
    Caused by: java.lang.NullPointerException
    <<No stacktrace available>>
    /home/egiallau/apache-tomcat-6.0.33/bin/catalina.sh: line 375: :/home/egiallau/jdk1.6.0_12/bin/bin/java: No such file or directory
    /home/egiallau/apache-tomcat-6.0.33/bin/catalina.sh: line 375: /home/egiallau/jdk1.6.0_12/bin/bin/java: No such file or directory
    /home/egiallau/apache-tomcat-6.0.33/bin/catalina.sh: line 375: /home/egiallau/jdk1.6.0_12/bin/bin/java: No such file or directory
    /home/egiallau/apache-tomcat-6.0.33/bin/catalina.sh: line 375: /home/egiallau/jdk1.6.0_12/bin/bin/java: No such file or directory
    /home/egiallau/apache-tomcat-6.0.33/bin/catalina.sh: line 375: /home/egiallau/jdk1.6.0_12/bin/bin/java: No such file or directory
    Last edited by egiallau; 10-06-2011 at 11:56 AM. Reason: adding log

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Before getting into your problem...I just wanted to clarify your OS. Do you mean Red Hat Enterprise 5? Or do you mean Fedora Core 5 (I hope not!)?

    Can you not use the tomcat and jdk that come with the distro? Installing and using those versions (if you can) might be the smoothest option for you. But if you need these updated versions of software, that's different - we'll try to help you with that.

    In any event, I think your JRE_HOME env var should be /home/egiallau/jdk1.6.0_12/ (remove the bin from the end of it).

    On the same topic, my CLASSPATH usually looks something like this:
    Code:
    export CLASSPATH=${JRE_HOME}/lib/ext

  3. #3
    Just Joined!
    Join Date
    May 2011
    Location
    Malaysia
    Posts
    39
    Hi,

    I could be wrong but from your catalina.out it says java not found.
    what does

    which java

    or

    find /home/yourusername/ -type f -name "*java*"

    shows?

  4. #4
    Just Joined!
    Join Date
    May 2011
    Location
    Malaysia
    Posts
    39
    I'd go with atreyu's answer first

  5. #5
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    Ops.. Sorry I was thinking about Fedora, but I'm on red hat!

    I'll try to change the JRE_HOME, and let you know.

    Btw I need to use that version of tomcat/jdk for compliance with prod system.

    Thanks in the meantime,
    Ettore.

  6. #6
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    Ok guys, I changed my JRE_HOME and now is all fine.

    I haven't been trying from yesterday to do this change...

    Many thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...