1. download the tomcat src distribution

2. unzip the file to a temporary dir

3. go to <tomcat-src-dir>/src/native/apache1.3

4. execute /usr/sbin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk-install-dir/include 
-I/usr/local/jdk-install-dir/include/linux -c *.c ../jk/*.c /jk/jk_ajp13_worker.o 
../jk/jk_ajp13.o ../jk/jk_ajp12_worker.o mod_jk.o

5. result of the execution will be
ld: cannot open ../jk/jk_worker.o: No such file or directory
apxs:Break: Command failed with rc=65536   
generates the mod_jk.o file 10540kb

6. execute  gcc -shared -o mod_jk.so *.o    to complete the build
generates the mod_jk.so file  84253kb

7. copy mod_jk.so file to /etc/httpd/libexec

8. include mod_jk.conf-auto to the last line of your http.conf file
e.g.  include /usr/local/tomcat/conf/mod_jk.conf-auto 

9. restart tomcat, then apache

10. verify the examples application can be access using 
http://<servename>/examples/jsp/
if the server server them then you successfully done your job!
congratulations!!!!!

��.a�h�g�ʋ�~��ɨh��&i�kz��m���j)rj(r�

Reply via email to