Building mod_jk.so for Tomcat/Apache under Solaris
Posted: 8/20/2001 11:14:05 AM
By: Comfortably Anonymous
Times Read: 4,547 Likes:0Dislikes:0
Topic: Programming: Java
I had to build mod_jk.so (The Tomcat Java App Server <--> Apache Web Server connector) at work for Solaris. The instructions in the documentation do not work under Solaris, so I figured I'd detail my findings for future use.
Go get the Java 2 SDK for Solaris (if you don't have it) - If you're not root, don't worry, it still installs fine.
Make sure JAVA_HOME environment variable is set to the directory that the Java SDK is located in (ex /usr/local/jdk1.3.1, or /home/joe/jdk1.3.1)
Make sure $JAVA_HOME/bin is part of your PATH.
You MUST have the Tomcat SOURCE (A binary Tomcat install does NOT have these files)
Go to tomcat_source/src/native/Apache1.3 (Note that you will NOT be using the Makefile to do this!)
Run the following two commands. (Change the location of apxs as appropriate)
You are done! You have a working Solaris mod_jk.so! :) Copy it to the /libexec directory under your Apache directory, then head to the Tomcat docs for info on setting up Tomcat and Apache to work together.