Tomcat problem

Discussion in 'Installation/Configuration' started by dexjul, Oct 21, 2008.

  1. dexjul

    dexjul New Member

    Hi,

    I installed apache-tomcat-6.0.14-src and jdk1.6.0_10.

    I'll run tomcat

    [root@dexter bin]# ./startup.sh
    Using CATALINA_BASE: /usr/local/tomcat/apache-tomcat-6.0.14-src
    Using CATALINA_HOME: /usr/local/tomcat/apache-tomcat-6.0.14-src
    Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-6.0.14-src/temp
    Using JRE_HOME: /usr/java/jdk1.6.0_10/

    And I go to my browser http://localhost:8080, error failed to connect.

    And I stop tomcat and I get this messages.

    [root@dexter bin]# ./shutdown.sh
    Using CATALINA_BASE: /usr/local/tomcat/apache-tomcat-6.0.14-src
    Using CATALINA_HOME: /usr/local/tomcat/apache-tomcat-6.0.14-src
    Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-6.0.14-src/temp
    Using JRE_HOME: /usr/java/jdk1.6.0_10/
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
    Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.

    Any Idea?

    Thanks
     
  2. topdog

    topdog Active Member

    What is being logged ? Have u checked with netstat if the port is open ?
     
  3. dexjul

    dexjul New Member

    Hi,

    Here's the log of catalina.out.

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
    Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.


    Also I checked the netstat for the running port and there is no running 8080.

    [root@dexter logs]# nmap localhost -p1-65355

    Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-10-20 19:04 PHT
    Interesting ports on localhost.localdomain (127.0.0.1):
    Not shown: 65350 closed ports
    PORT STATE SERVICE
    22/tcp open ssh
    25/tcp open smtp
    111/tcp open rpcbind
    631/tcp open ipp
    825/tcp open unknown

    Please help. Thank you
     
  4. dexjul

    dexjul New Member

    This problem has been resolved...

    Thank you..
     
  5. helikart

    helikart New Member

    Would you please share how you resolved the problem - I'm having the same issue.

    Thanks,

    TH
     
  6. dexjul

    dexjul New Member

    Hi,

    I think you,ve download a wrong version of tomcat in apache.org. You need to download the Binary Distributions not the Source Code Distributions if you install the java in binary (" java_ee_sdk-5_06-linux.bin").

    I hope this can solve your problem.

    Regards,
     
  7. helikart

    helikart New Member

    Hi,
    the downloaded version was fine. I did resolve this after all. The problem was that the conf/ folder was missing the logging.properties file (which was due to my manipulation and setting up the server for multiple tomcat instances available to each user).

    Thanks,

    Tom
     

Share This Page