LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-26-2003, 10:33 PM   #1
mlhammer
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 11

Rep: Reputation: 0
Trying to integrate Apache w/ Tomcat....error message w/ mod_jk2.so


I am running RedHat 9 and trying to configure Apache to integrate w/ the Tomcat container. The versions running are httpd-2.0.40-21.3 and tomcat-4.1.24, respectively.

I have made the following changes to try to configure....

1) .../jakarta/conf/jk dir created workers.properties file

2) .../httpd/modules/mod_jk2.so file added

3) in httpd.conf added below modules lines --
LoadModule jk2_module modules/mod_jk2.so

When I run Tomcat/Catalina I have no problems, though, when I run configtest on apachectl I get,

"httpd: module "../../server/apache2/mod_jk2.c" is not compatible with this version of Apache.
Please contact the vendor for the correct version."

Any idea what the problem is??
 
Old 09-26-2003, 11:59 PM   #2
mlhammer
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 11

Original Poster
Rep: Reputation: 0
From another posting's advice, I installed the latest version of Apache on top of the release I mentioned before (the RedHat9 default). Now I'm thoroughly confused.....

The original script I ran (from /usr/sbin) still gives....

apachectl configtest

httpd: module "../../server/apache2/mod_jk2.c" is not compatible with this version of Apache.


And the new Apache version in /etc/httpd gives this,

apachectl configtest

httpd: module "mod_auth_mysql.c" is not compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

If I comment out the LoadModule line for mod_jk2 in httpd.conf then the first scenario inits Apache fine. But, regardless, the second section always yields the "mysql" error. Any ideas as to why this mysql error comes up, and why there are two apachectl scripts which are consistently yielding different outputs???
 
Old 10-06-2003, 04:10 AM   #3
phantompgr
Member
 
Registered: Sep 2002
Location: South Wales, UK
Distribution: Fedora Core & Mandrake
Posts: 83

Rep: Reputation: 15
Wrong version of jk2_module

For RH9, you will want to install a different version. On the ftp site you will want to download not the latest version but a slightly earlier version (sorry cannot remember precisely which version).

Have a rummage around on the ftp site as the version you do want actually has it labelled as jk_mod????rh9.

Without any particular config, this should work correctly and the problem should go away!!

PGR
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Tomcat server error?? mlhammer Linux - Software 0 08-01-2004 12:20 AM
Need Help - mod_jk2 connector / Tomcat 5 / Apache 2 / Redhat 9 sfwhip Programming 5 06-13-2004 02:57 AM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Networking 1 03-20-2004 09:42 AM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Newbie 0 03-19-2004 09:21 PM
mod_jk2 Apache error ardochoke Linux - Networking 5 08-31-2003 05:52 PM


All times are GMT -5. The time now is 02:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration