Two prefaces...
1) I hope this is the right list. I didn't see one specifically for mod_jk/mod_jk2.
2) I've read all the doc's I can find. I've been reading and trying for the last two days. Please don't send me replies telling me to RTM. The whole reason for my post is that I'm stuck and think I'm dealing with mod_jk docs not being updated for mod_jk2.


I have a RH Linux ES 2.1 server. It has apache 1.3.27 installed via RH's up2date. I also have mod_ssl, and a few other mod's. The apache part is up and running correctly on non-standard ports, but I've tested it with local telnets and remotely through a web-browser. Our original configuration on the server was just pure Tomcat (4.1.27) listening on port 80. We wanted to add SSL support (port 443) and split our services at the same time, allowing us to later have Tomcat and Apache on different servers, hence why I installed Apache. I've spent the last two days reading the relevant portions of WROX's "Professional Apache Tomcat" and loads of information on the jakarta.apache.org site. Unfortunately, it seems that a lot of the docs (and my book) are still referencing mod_jk syntax & options and causing me confusion trying to use mod_jk2.

My apache and mod_ssl are from RPM, not source. My Tomcat (ver. 4.1.27... need to get this working before going to 4.1.29) is from a binary (jakarta-tomcat-4.1.27.tar.gz). My mod_jk2 is from jakarta-tomcat-connectors-jk2-src-current.tar.gz and was built by cd'ing into ~/jk/native2, then running 'buildconf.sh' and then 'configure --with-apxs=/usr/sbin/apxs'. The file mod_jk2.so was created and I copied it to my modules directory (/usr/lib/apache - stock on RH ES 2.1).

I have the following in my server.xml:

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

I've created a workers.properties file in /usr/jakarta-tomcat-4.1.27/conf/jk. It looks like this:

        # Setting variables
        workers.tomcat_home=/usr/tomcat
        workers.java_home=/usr/java/j2sdk1.4.1_04
        ps=/
        worker.list=TomcatWorker1
        # Settings for TomcatWorker1 worker
        worker.TomcatWorker1.port=8009
        worker.TomcatWorker1.host=localhost
        worker.TomcatWorker1.type=ajp13

Lastly, I've added the following to the end of my httpd.conf:

        # Load mod_jk2
        LoadModule jk2_module modules/mod_jk2.so

        # Configure mod_jk2
        JkWorkersFile /etc/httpd/conf/workers2.properties
        JkLogFile /var/log/httpd/mod_jk.log
        JkLogLevel info

JkMount /usr/tomcat/webapps/Genvault/*.jsp TomcatWorker1

Here's my problem. When I run "apachectl configtest", I get:

[Wed Nov 05 23:27:15 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd
Create config for main host
Syntax error on line 1499 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration


Obviously the module is loading. I even tried the AddModule directive, but it just tells me the module is already loaded. I tried commenting out the 'JkWorkersFile' parameter, but it just errors on the next line:

[Wed Nov 05 23:28:56 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd
Create config for main host
Syntax error on line 1500 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration


Any thoughts on how to get this working? I feel like I'm real close, but missing something obvious. I've searched around google and found a post saying to use jk2.properties instead of workers.properties for mod_jk2. I've tried this and the appropriate path change, but it didn't work. The post also said to put in in apache's conf dir and it will look for it there (/etc/httpd/conf). I tried that and it didn't work either. Reference: http://zarb.org/pipermail/jpackage-discuss/2003-July/002573.html
--


Andrew Davis, Founder
SoCalLinuxSolutions
[EMAIL PROTECTED]
760-525-4689

SoCalLinuxSolutions.com
Linux Consultation & Integration Services



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to