Women in Technology

Hear us Roar

  Integrating Tomcat with Apache Via the mod_jk Module
Subject:   Help: Finding the 'Headers' directory
Date:   2002-08-21 18:48:46
From:   cothomps

I might be able to provide a limited bit of help with the compliation:

My 'Headers' directory is located here:


By doing an 'ls', here are the files in the directory:
-rw-r--r-- 1 root wheel 843 Apr 1 21:29 JDWP.h
-rw-r--r-- 1 root wheel 9161 Apr 1 21:29 JDWPCommands.h
-rw-r--r-- 1 root wheel 67049 Apr 1 20:14 jni.h
-rw-r--r-- 1 root wheel 445 Apr 1 20:14 jni_md.h
-rw-r--r-- 1 root wheel 37149 Apr 1 20:14 jvmdi.h
-rw-r--r-- 1 root wheel 22053 Apr 1 20:14 jvmpi.h

My first suggestion; attempt to find the libraries with the 'locate' command. (e.g. "locate jvmdi.h") to see if the header files might be installed elsewhere.

For example, I did a 'locate', and found that the libraries were also located here:


Then, I had to modify the shell script to tell the build to use *these* header files. The inelegant way: simply replace everywhere you see "${JAVA_HOME}/include" with the full path "/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers", or whereever the libraries might be knocking around on your system. The build then should kick off without a hitch. (Be careful, though... I simply did another build without testing the entire module!)

If the libraries are simply not there on your system, we might have other problems....

Hope this helped...

- Chad Thompson

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Help: Finding the 'Headers' directory
    2002-08-22 01:55:35  jdicastro@austin.rr.com [View]

    Chad -

    You the man!

    Thanks so much. I found the headers right where you also found them(i.e. under the /A/ dir), and the build ran fine. The irony is that I got Apache and Tomcat chatting by using the mod_webapp mod that's described on Apple's dev site.

    Do you have a preference between mod_jk adn mod_webapp?

    • Help: Finding the 'Headers' directory
      2002-08-22 06:42:43  cothomps [View]

      There are a number of considerations to take into account; rather than try to list, there is a *much* better summary here:


      (This summary discusses all of the 'connector' options for Tomcat.)

      I have been using mod_jk due to the fact that it also works with the Tomcat 3.x releases (when I started using it, on Linux), vs mod_webapp which is/was advertised to work with Tomcat 4.x only.

      Personally, I also find the configuration of mod_jk to be a bit more familiar, since a mod_jk configuration is nothing more than setting up a Virtual Host on the Apache side of things...

      These considerations are good for simple sites, but you may need to consider much more if you are needing things like SSL support between Tomcat/Apache, etc.; I'll refer you to the summary above, with links, to find out more...