View Light

Building for Tomcat/Apache under Solaris

I had to build (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)

/usr/local/apache/bin/apxs -I$JAVA_HOME/include -I$JAVA_HOME/include/solaris -I ../jk -o -c *.c ../jk/*.c

gcc -shared -lposix4 -o *.o

You are done! You have a working Solaris! :) 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.
Rating: (You must be logged in to vote)
Comfortably Anonymous
8/29/2001 2:04:56 PM
0 Dislikes: 0
Comfortably Anonymous
8/29/2001 2:06:39 PM
0 Dislikes: 0
Comfortably Anonymous
8/31/2001 8:23:15 AM
0 Dislikes: 0
Comfortably Anonymous
4/1/2010 10:30:59 PM
0 Dislikes: 0