Building mod_jk.so for Tomcat/Apache under Solaris
Posted: 8/20/2001 11:14:05 AM
By: Comfortably Anonymous
Times Read: 4,620
0 Dislikes: 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)

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

gcc -shared -lposix4 -o mod_jk.so *.o

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.
Rating: (You must be logged in to vote)
Discussion View:
Replies:

Building mod_jk.so for Tomcat/Apache under Solaris
Posted: 8/20/2001 11:14:05 AM
By: Comfortably Anonymous
Times Read: 4,620
0 Dislikes: 0
Topic: Programming: Java
Thanks for this information. I am struggling with the same problem here, and its frustrating. However, when I do the exact same thing as your directions, I keep getting an error that says:
apsx:Break: Command failed with rc=16711680

Have you seen this problem before?
Thanks,
Brett
Rating: (You must be logged in to vote)

Building mod_jk.so for Tomcat/Apache under Solaris
Posted: 8/20/2001 11:14:05 AM
By: Comfortably Anonymous
Times Read: 4,620
0 Dislikes: 0
Topic: Programming: Java
Thanks for this information. I am struggling with the same problem here, and its frustrating. However, when I do the exact same thing as your directions, I keep getting an error that says:
apsx:Break: Command failed with rc=16711680

Have you seen this problem before?  Any information would be helpful.
Thanks,
Brett
procek@lucent.com
Rating: (You must be logged in to vote)