Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated instructions based on experience with RHEL6 and mod_jk 1.2.40

...

Once the mod_jk connector has been installed, you will have to configure Apache to use this connector to communicate with Tomcat. First, modify the existing workers.properties.minimal file (should be in /etc/httpd/conf/ , or whereever wherever you copied it to in Step 2 above):
You will need to modify the following Tomcat and Java home directories:

Code Block
workers.tomcat_home=tomcat
workers.java_home=java

Also add ajp13 to the worker list:

Code Block
worker.list=ajp13,lb,jk-status

In addition, you may need to uncomment (and possibly change) the JVM for Unix:

Warning

For later versions of mod_jk (I installed 1.2.40) worker.iprocess.jvm_lib is deprecated and would throw an warning. I omitted this line with no problems.

Code Block
# Unix - Sun VM or blackdown
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so

...

However, the correct path of the libjvm.so (at least for Red Hat) is java/jre/lib/i386/server/libjvm.so (i.e. "server/libjvm.so", not "classic/libjvm.so")

 

Step 4 - Configure mod_jk connector

...