LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2004, 03:58 AM   #1
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Tomcat 5 with Apache


Hi Guys,

I know this has been discussed but I searched and cannot find the problem that I am experiencing. Ok, I just want to serve .jsp pages and that's it. So my understanding is that I can use tomcat to hook to apache and the way to do that is to use mod_jk. I have:

apache 1.3.26 (work fine)
java 1.4.2_05 (work fine)
tomcat 5.0.28-src (broken)

I've read that you can start the service after unpacking. I ran it like so:
/usr/local/jakarta-tomcat-5.0.28-src/jakarta-tomcat-catalina/catalina/src/bin/startup.sh which shows:

Using CATALINA_BASE: /usr/local/jakarta-tomcat-5.0.28-src
Using CATALINA_HOME: /usr/local/jakarta-tomcat-5.0.28-src
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.28-src/temp
Using JAVA_HOME: /usr/local/java

Looks good right? no...I check the logs and I see for catalina.out:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

What does this mean? I've looked on google and haven't found an answer. My environments are:

CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28-src
ANT_HOME=/usr/local/apache-ant-1.6.2
CLASSPATH=$ANT_HOME:$CATALINA_HOME:$JAVA_HOME:$TOMCAT_HOME
JAVA_HOME=/usr/local/java
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$JAVA_HOME/bin:/usr/local/apache-ant-1.6.2/bin"

I am so clueless at this point. Any help is greatly appreciated. Thank you!

-twantrd
 
Old 10-18-2004, 06:16 PM   #2
jandersen78
LQ Newbie
 
Registered: Sep 2004
Location: Provo, UT
Distribution: Fedora Core 2
Posts: 15

Rep: Reputation: 0
It looks like you may have downloaded the source code instead of the binary that you may want... you might try again using the tomcat binary instead of the source...
 
Old 10-18-2004, 08:52 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Hi,

Yes, the binary version is a lot easier I must admit for tomcat. Tomcat works off the bat which is great but trying to get mod_jk to work....now that's a headache. I have downloaded the mod_jk.deb (forgot the actual filename...i can get that to you if you need) and installing it went well but when I try to serve .jsp pages from apache I see the jsp code which is not what I want. Hmm, is mod_jk that difficult to get it to work with apache?

-twantrd
 
Old 10-18-2004, 10:53 PM   #4
jandersen78
LQ Newbie
 
Registered: Sep 2004
Location: Provo, UT
Distribution: Fedora Core 2
Posts: 15

Rep: Reputation: 0
Well, there's plenty of HOW-TOs out on the web for all sorts distros, versions of tomcat and apache...
I've posted a few times on this subject but you may be better off googling to find something specifically suited to your install...

http://www.linuxquestions.org/questi...45#post1201545
 
  


Reply



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.5.1 and Apache 2 kpmaddenuk Linux - Software 2 10-30-2004 05:55 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM
Apache with Tomcat 4.0.3 chuck77 Linux - General 7 09-22-2002 03:57 PM
Apache and Tomcat Marcel Linux - General 2 07-11-2001 08:24 AM
Apache,Tomcat prowzen Linux - Software 0 05-09-2001 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 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
Open Source Consulting | Domain Registration