LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2007, 07:02 AM   #1
akuma_linux
Member
 
Registered: Aug 2006
Distribution: Ubuntu, CentOS
Posts: 31

Rep: Reputation: 15
tomcat startup problem


Hi

When I try start tomcat the output is :

Code:
./startup.sh 
Using CATALINA_BASE:   /etc/apps/tomcat
Using CATALINA_HOME:   /etc/apps/tomcat
Using CATALINA_TMPDIR: /etc/apps/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/
However going to http://localhost:8080 shows a page cant be found error.

The log file shows :

Code:
cat catalina.out 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
I have no idea how to fix this problem after extensive "Googling", can someone help please?

The output of java -version shows :

Code:
java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
Thankyou in advance
 
Old 11-09-2007, 10:21 AM   #2
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
I'm no expert on tomcat, I'm just guessing here, but maybe check that your CLASSPATH environment variable is setup correctly, sounds like it's looking for a tomcat specific class, perhaps you have to setup your CLASSPATH to include some of tomcat's JARS?

Hope this helps,

Cheers,

James.
 
Old 11-09-2007, 10:47 AM   #3
akuma_linux
Member
 
Registered: Aug 2006
Distribution: Ubuntu, CentOS
Posts: 31

Original Poster
Rep: Reputation: 15
Hi

Thanks for the reply.

My $CLASSPATH at the moment is :

Code:
echo $CLASSPATH
/usr/share/java/jsp-api.jar:/usr/share/java/servlet-api.jar:/etc/apps/tomcat/java/org/apache/catalina/startup:/etc/apps/tomcat/java/org/apache/catalina/startup/Bootstrap.java
I have no idea if this is correct or not i'm afraid, does anyone have any ideas?

Thankyou
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 5 Startup warnings tatacalu Linux - Server 1 12-27-2006 11:33 AM
how to get Tomcat to run on startup? TrevorS Slackware 8 09-19-2006 11:24 PM
tomcat startup on boot malbery Linux - Software 3 01-27-2005 05:10 PM
startup Tomcat 5.5.4 in Fedora 2 treotan Linux - Newbie 1 12-03-2004 10:46 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration