HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Tomcat problem (http://www.howtoforge.com/forums/showthread.php?t=28000)

dexjul 21st October 2008 01:38

Tomcat problem
 
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.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.

Any Idea?

Thanks

topdog 21st October 2008 10:45

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

dexjul 21st October 2008 18:16

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.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.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

dexjul 28th October 2008 08:48

This problem has been resolved...

Thank you..

helikart 6th November 2008 21:24

Quote:

Originally Posted by dexjul (Post 152078)
This problem has been resolved...

Thank you..

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

Thanks,

TH

dexjul 7th November 2008 02:59

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,

helikart 7th November 2008 03:27

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


All times are GMT +2. The time now is 19:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.