The solution was to download the mod_jk 1.2.1 source and compile it, following the instructions in the BUILDING doc included in the source. Many thanks for both of your help.
I also had to specify modJk="/usr/local/apache/libexec/mod_jk.so" even though the docs say that libexec/mod_jk.so is the default. It turns out that the reference is resolved relative to the tomcat directory (or maybe tomcat/conf?). If this is correct behaviour, perhaps that should be spelled out more in the docs. By the way, the log output at the bottom is more correct (with jkDebug="debug") Geoff (unsubscribing now - feel free to write directly if I can help with something) --- Geoff Howard <[EMAIL PROTECTED]> wrote: > Thanks for the reply. > Not much info there - localhost_log has only > 2002-12-04 14:15:18 HostConfig[xx.xx.xx.xx]: Deploying discovered web > applications > around the request times. > > catalina_log has only > 2002-12-04 14:16:59 Ajp13Connector[8009] active threads=6 > > and catalina.out only > Ajp13Connector active threads=6 > java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] > Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] > Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] > Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] > Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] > Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] > Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] > =================================== > > What should I be seeing where in a healthy system under jk? The > reason > I jumped to the conclusion that there should be more after 'found a > worker' was because of other sample output I found searching the > archive before writing the list. For instance, I found this > apparently > complete log for one successful request (do you have these in your > log?): > > [jk_uri_worker_map.c (344)]: Into > jk_uri_worker_map_t::map_uri_to_worker > [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, > Found a match 65245 > [jk_worker.c (123)]: Into wc_get_worker_for_name 65245 > [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker > [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint > [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service > [jk_connect.c (108)]: Into jk_open_socket > [jk_connect.c (115)]: jk_open_socket, try to connect socket = 9 > [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 > [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on > [jk_connect.c (140)]: jk_open_socket, return, sd = 9 > [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 9 > [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request > [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 > start sequence > [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers > [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the > terminating mark > [jk_ajp12_worker.c (472)]: ajpv12_handle_request done > [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request > [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response > [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 200 > OK > [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=200 OK > [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type: > text/html;charset=8859_1 > [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read > Content-Type=text/html;charset=8859_1 > [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header > arrays > [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read > Servlet-Engine: > Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2; Java 1.3.0; Linux > 2.2.16-3smp x86; java.vendor=IBM Corporation) > [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read > Servlet-Engine=Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2; > Java > 1.3.0; Linux 2.2.16-3smp x86; java.vendor=IBM Corporation) > [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read > [jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done > [jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response > [jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response > body > [jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is > done > [jk_ajp12_worker.c (602)]: ajpv12_handle_response done > [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done > > Many thanks, > Geoff > > --- Milt Epstein <[EMAIL PROTECTED]> wrote: > > On Wed, 4 Dec 2002, Geoff Howard wrote: > > > > > SDK 1.4.1_01 > > > Tomcat 4.1.12-LE binary > > > Apache 1.3.27 with ssl/eapi > > > mod_jk-1.3-eapi.so (symlinked to mod_jk.so) > > > obtained from > > > > > > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/ > > > Linux > > > > > > Tomcat works fine on 8080, Apache works fine on 80. The server > is > > > remote (hosting facility) so I'm not using local host. As DNS is > > not > > > propagated fully, I'm using IP address as ServerName in > httpd.conf, > > and > > > in Engine and Host declarations in server.xml. Accessing > > > http://{ipaddress}/examples/ no response in browser (actually it > > looks > > > like 404, but using telnet directly showed literally no response, > > just > > > connection lost. Below are mod_jk.log, server.xml snippets, > > > workers.properties, mod_jk.conf, and httpd.conf include line. > > > > > > [Wed Dec 04 08:53:09 2002] [jk_uri_worker_map.c (460)]: Into > > > jk_uri_worker_map_t::map_uri_to_worker > > > [Wed Dec 04 08:53:09 2002] [jk_uri_worker_map.c (477)]: > Attempting > > to > > > map URI '/examples/' > > > [Wed Dec 04 08:53:09 2002] [jk_uri_worker_map.c (502)]: > > > jk_uri_worker_map_t::map_uri_to_worker, Found a context mat > > > ch ajp13 -> /examples/ > > > [Wed Dec 04 08:53:09 2002] [jk_worker.c (132)]: Into > > > wc_get_worker_for_name ajp13 > > > [Wed Dec 04 08:53:09 2002] [jk_worker.c (136)]: > > > wc_get_worker_for_name, done found a worker > > > [Wed Dec 04 08:55:00 2002] [jk_uri_worker_map.c (460)]: Into > > > jk_uri_worker_map_t::map_uri_to_worker > > > [Wed Dec 04 08:55:00 2002] [jk_uri_worker_map.c (477)]: > Attempting > > to > > > map URI '/whm-server-status' > > > > > > The last two entries are for a different request, two seconds > > later. So > > > it appears that the processing stops after 'found a worker' > > > > From what I recall when viewing our mod_jk.log, this is the normal > > behavior. It found a worker, it's done its job, it then passes the > > request to the worker. I think you'll have to look at logs further > > down the chain (i.e. the tomcat logs) to see what's going wrong. > > > > > > > ------------- > > > <Server port="8005" shutdown="SHUTDOWN" debug="0"> > > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > > jkDebug="debug"/> > > > ... (mbeans listeners commented out because of errors at startup) > > > > > > <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> > > > <!-- <Connector > > className="org.apache.coyote.tomcat4.CoyoteConnector" > > > commented out > > > --> > > > <!-- Define an AJP 1.3 Connector on port 8009 --> > > > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" > > > port="8009" minProcessors="5" maxProcessors="75" > > > acceptCount="10" debug="10"/> > > > ... > > > <Engine name="Standalone" defaultHost="{ipaddress}" > debug="0"> > > > ... > > > <!-- Define the default virtual host --> > > > <Host name="{ipaddress}" debug="0" appBase="webapps" > > > unpackWARs="true" autoDeploy="true"> > > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > > append="true" jkDebug="debug"/ > > > <Alias>localhost</Alias> <!-- so I can try from lynx - no luck > --> > > > <Alias>127.0.0.1</Alias> > > > ... > > > mod_webapp commented out > > > > > > ---------- > > > workers.tomcat_home=/opt/tomcat > > > workers.java_home=/opt/java > > > ps=/ > > > worker.list=ajp12, ajp13 > > > > > > # Definition for Ajp13 worker > > > # > > > worker.ajp13.port=8009 > > > worker.ajp13.host=64.91.232.157 > > > worker.ajp13.type=ajp13 > > > ------------ > > > ########## Auto generated on Wed Dec 04 08:49:31 EST > 2002########## > > > > > > <IfModule !mod_jk.c> > > > LoadModule jk_module libexec/mod_jk.so > > > </IfModule> > > > > > > JkWorkersFile "/opt/tomcat/conf/jk/workers.properties" > > > JkLogFile "/opt/tomcat/logs/mod_jk.log" > > > > > > JkLogLevel debug > > > > > > <VirtualHost 64.91.232.157> > > > ServerName 64.91.232.157 > > > ServerAlias localhost 127.0.0.1 > > > > > > JkMount /admin ajp13 > > > JkMount /admin/* ajp13 > > > > === message truncated === __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
