LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Trying to integrate Apache w/ Tomcat....error message w/ mod_jk2.so (https://www.linuxquestions.org/questions/linux-general-1/trying-to-integrate-apache-w-tomcat-error-message-w-mod_jk2-so-97342/)

mlhammer 09-26-2003 09:33 PM

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??

mlhammer 09-26-2003 10:59 PM

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???

phantompgr 10-06-2003 03:10 AM

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


All times are GMT -5. The time now is 03:59 AM.