Hi.
I'm trying to use mod_jk with Tomcat 4.01 (could not use mod_webapp because
of host name problems).
I'm going mad, because the connection just hangs, and I cannot locate an
error.
 
I've build the mod_jk.so without errors.
I've added the LoadModule and AddModule directives for mod_jk to httpd.conf.
I've added an include directive for mod_jk.conf to httpd.conf
I've created a workers.properties file from Tomcat 3.2 distribution.
Apache configtest returns "Syntax OK".
Apache starts up without errors:
 
[Thu Jan 17 17:41:12 2002] [notice] Apache/1.3.9 (Unix) mod_jk/1.1.0
configured -- resuming normal operations
 
I've added an AJP13 connector to my server.xml:
 
    <!-- AJP13 Connector -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
        port="8049" minProcessors="5" maxProcessors="75"
        acceptCount="10" debug="2" connectionTimeout="0" />
 
I made sure that the port number is the same as in workers.properties.
Tomcat starts without errors.
 
But when I make a request, it just hangs, and eventually times out.
The catalina.log shows the following error:
 
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not
found
        at org.apache.ajp.tomcat4.Ajp13Connector.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:479)

And the mod_jk log shows the following:
 
[Thu Jan 17 17:42:40 2002]  [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb
[Thu Jan 17 17:42:40 2002]  [jk_ajp13.c (537)]: ajp13_marshal_into_msgb -
Done
[Thu Jan 17 17:42:40 2002]  [jk_connect.c (108)]: Into jk_open_socket
[Thu Jan 17 17:42:40 2002]  [jk_connect.c (115)]: jk_open_socket, try to
connect socket = 9
[Thu Jan 17 17:42:40 2002]  [jk_connect.c (124)]: jk_open_socket, after
connect ret = 0
[Thu Jan 17 17:42:40 2002]  [jk_connect.c (132)]: jk_open_socket, set
TCP_NODELAY to on
[Thu Jan 17 17:42:40 2002]  [jk_connect.c (140)]: jk_open_socket, return, sd
= 9
[Thu Jan 17 17:42:40 2002]  [jk_ajp13_worker.c (189)]: In
jk_endpoint_t::connect_to_tomcat, connected sd = 9
[Thu Jan 17 17:42:40 2002]  [jk_ajp13_worker.c (206)]: sending to ajp13 #328
[Thu Jan 17 17:42:40 2002]  [jk_ajp13_worker.c (645)]: send_request 2:
request body to send 0 - request body to resend 0
 
What can possibly be wrong? 
My mod_jk.conf looks like this:
 
JkWorkersFile /usr/local/tomcat/vyrecl/conf/workers.properties
JkLogFile     /usr/local/tomcat/vyrecl/logs/mod_jk.log
JkLogLevel    debug
 
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
 
System info:
Tomcat 4.01
Apache 1.3.9
JDK 1.2
OS: Solaris 7

Thanks for your help.
-OGG

Reply via email to