-
1. Re: Problem starting Apache 1.3 w/mod_jk.so
jwkaltz Apr 24, 2002 6:35 AM (in response to jdsys)> I get the following error:
> "Can't locate API module structure 'mod_jk' in file
> /http/libexec/mod_jk.so:/usr/sbin/httpd:undefined
> symbol:mod_jk[60G[[1;31mFAILED[0;39]
It does look as if your mod_jk did not build correctly. Try the command "nm" to see what symbols are in a library - it seems the mod_jk should be there as a symbol but isn't in yours.
In my case, I have
root@gena > nm /usr/local/apache/libexec/mod_jk.so | grep mod_jk
/usr/local/apache/libexec/mod_jk.so:
[22] | 0| 0|FILE |LOCL |0 |ABS |mod_jk.c
[1] | 0| 0|FILE |LOCL |0 |ABS |mod_jk.so
My mod_jk.so comes from the Tomcat 3.3 distribution though. I don't know about the differences with Tomcat 4.0 but there seem to be some differences. -
2. Re: Problem starting Apache 1.3 w/mod_jk.so
jdsys Apr 24, 2002 1:21 PM (in response to jdsys)OK, I recompiled the mod_jk.so and Apache did not complain this time. I have configure both Tomcat and Apache so they can talk to each other but it I have not been successful.
How exactly is the httpd.conf file supposed to be configured?
For example:
I have the following lines in my httpd.conf file.
###################################################
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.dll
</IfModule>
JkWorkersFile "/workers.properties"
JkLogFile "/usr/local/JBoss-2.4.4_Tomcat-4.0.1/catalina/logs/mod_jk.log"
JkLogLevel emerg
JkMount /admin ajp13
JkMount /admin/* ajp13
JkMount /examples/*.jsp ajp13
JkMount /jboss/* ajp13
JkMount /examples/* ajp13
JkMount /servlet/* ajp13
#####################################################
Where do I find the workers.properties file?
Where are the JkMount directories? Do I create them on the Apache side or the Tomcat side? I am running Tomcat embedded with JBoss. So currently the root of all jsp's exists on the JBoss side. Does this mean that all the JkMount directories in the httpd.conf file need to be in the JBoss side? One more time thanks for the help. :)