LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2002, 09:25 AM   #1
Sridhar Guntur
LQ Newbie
 
Registered: Oct 2002
Location: 808 Ridge Drive apt #110 Dekalb IL-60115
Distribution: RedHat 7.2
Posts: 11

Rep: Reputation: 0
Unhappy tomcat apache problem..please help


I have apache 1.3.22 and tomcat 4.1.12 and jdk 1.4.1 and all of them are working fine i their place.(i.e java applets work in my webserver at port 80 and jsp pages work fine at port 8080). i wanted to link tomcat with apache and so downloaded, mod_jk.so, mod_jk.conf, and workers.properties files from the site,

http://support.clickshare.com/downl...-1a-tomcat.html

and followed all the instructions on it like,


To, /etc/httpd/conf/httpd.conf added

(1) LoadModule jk_module modules/mod_jk.so(at beginningof LoadModule list)

(2) AddModule mod_jk.c (at the beginning of AddModule list)

(3) Include /etc/httpd/conf/mod_jk.conf (at the end of AddModule list)

(4) Created mod_jk.conf using the example shown below and place it in /etc/httpd/conf/mod_jk.conf.
(5) Edited it so JkWorkersFile points to $TOMCAT_HOME/conf/workers.properties .


A copy of this sample file is like as below
**************************************************
********************************
# $Id: install-linux-1a-tomcat.html,v 1.1 2001/11/06 20:27:53 click Exp $
# Copyright (C) 2001 Clickshare Service Corp. Allrights reserved.
#
# The following line instructs Apache to load the jk module
#
#------------------------------
# The lastest version of this file should be on our FTP site:
# ftp://ftp.clickshare.com/pub/clicks...ent/mod_jk.conf
#----------------------------------------------------------------------

JkWorkersFile /usr/local/jakarta-tomcat-3.2.3/conf/workers.properties
JkLogFile logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

#
# Test context mounts for Tomcat
#
JkMount /examples ajp12
JkMount /examples/* ajp12


# The following line mounts the hello context
JkMount /hello/servlet/* ajp12
JkMount /hello/*.jsp ajp12
**************************************************
***************************
(6) Edited $TOMCAT_HOME/conf/workers.properties and set workers.tomcat_home to the value of $TOMCAT_HOME. Then set workers.java_home to the directory where your JAVA_HOME lives and ps to the directory separator "/").

(7) and started tomcat first and then apache
(8) Finally, i tested my apache/tomcat configuration
http://localhost:8080/examples/serv...lloWorldExample (works!!)
http://localhost/examples/servlet/HelloWorldExample (doesn't work)

i get 500 internal server error :The server encountered an internal error or misconfiguration and was unable to complete your request.

so i see that my tomcat is not serving my apache.i have also cheked all the file permissions but they seem to be ok.what am i missing?
please help me. its been 6 hours since i was searching for a solution on the internet.

thanks a lot to you all in advance.

Last edited by Sridhar Guntur; 10-08-2002 at 10:16 AM.
 
Old 10-08-2002, 09:59 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
As you are saying you have tomcat-4.1.2 (I beleive it is the correct version of it, and you have workers.properties
file from here from tomcat-3.2.3, these are two different versions though, anyway I have it setup that way on apache-1.3.26 and tomcat-3.3.1 final

This is what I've added to httpd.conf
################
# TOMCAT Directives #
################
</IfDefine>
Include /usr/local/tomcat-3.3/conf/auto/mod_jk.conf
__________________________________________
and tomcat is running on port 8080 as well. And I followed the following instructions from Yo-linux,
try this link it pertains to tomcat4
http://www.yo-linux.com/TUTORIALS/Li...ialTomcat.html
Scroll down to Apache-Tomcat Configuration section.

Last edited by neo77777; 10-08-2002 at 10:01 AM.
 
Old 10-08-2002, 10:27 AM   #3
Sridhar Guntur
LQ Newbie
 
Registered: Oct 2002
Location: 808 Ridge Drive apt #110 Dekalb IL-60115
Distribution: RedHat 7.2
Posts: 11

Original Poster
Rep: Reputation: 0
____________________________________________________
As you are saying you have tomcat-4.1.2 (I beleive it is the correct version of it, and you have workers.properties
file from here from tomcat-3.2.3, these are two different versions though, anyway I have it setup that way on apache-1.3.26 and tomcat-3.3.1 final

This is what I've added to httpd.conf
################
# TOMCAT Directives #
################
</IfDefine>
Include /usr/local/tomcat-3.3/conf/auto/mod_jk.conf
____________________________________________________

Yes, i have 4.1.12(i edited my post), and though i got the workers.properties file from tomcat-3.3 version, i changed it so that JkWorkersFile points to my $TOMCAT_HOME/conf/workers.properties

and edited $TOMCAT_HOME/conf/workers.properties and set workers.tomcat_home to the value of $TOMCAT_HOME. Then set workers.java_home to the directory where my JAVA_HOME lives and ps to the directory separator "/").

should i change anything else in workers.properties file or should i get a new version of it for my tomcat-4.1.12?please suggest

thanks for your reply neo77777.
 
Old 10-08-2002, 10:44 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I think it would be a little more safe to get the appropriate properties file, take a look at the tutorial I linked you to.
 
  


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
Problem setting up Apache Tomcat connector . Idrisk Linux - Software 6 11-17-2005 09:58 AM
Link apache tomcat problem rollinpark Linux - Software 1 01-28-2005 12:48 AM
problem in configuring Tomcat with Apache ambuj Linux - Software 2 04-19-2004 09:02 AM
Apache and Tomcat Configuration Problem inspiration Linux - Software 0 04-19-2004 01:46 AM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 08:28 AM

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

All times are GMT -5. The time now is 05:34 AM.

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