Hi Folks,
We're having more than a few problems in this process so far. Any help will be as
always gratefully received.
A: we've been unable to compile a fresh connector in either jk or jk2 flavour. Each
one fails at a late stage of compile listing copious parse errors in the jni.h include
in the JDK.
As such we've taken a precompiled binary of mod_jk.so (2.0.42) and plugged it in
instead. Everything seems to be ok from this point except of course that it's not
working. Apache and Tomcat continue to work standalone, both boot without errors (now
that I've commented out the lifecycle listeners - jk2 only?) and the Apache Include in
httpd.conf (Include /opt/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf) seems to be
running as the log files etc are being created. However mod_jk is giving us the
following error/s
[jk_connect.c (177)]: jk_open_socket, connect() failed errno = 146
[jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno 146
For completeness our system is:
Solaris 2.8 sparc version
Apache 2.0.43 (fresh compile with dso)
Tomcat 4.1.12
mod_jk-2.0.42.so (symlink to mod_jk.so)
server.xml got the following additions to generate the auto config files
Immediately following the <server port="8005" ..>
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/opt/apache_2/modules/mod_jk.so" jkDebug="info"
workersConfig="/opt/jakarta-tomcat-4.1.12/conf/jk/workers.properties"
jkLog="/opt/jakarta-tomcat-4.1.12/logs/mod_jk.log" />
Then after <Host name="localhost" .. >
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
workers.properties is very minimal todate
#Define some properties
workers.apache_log=/opt/apache_2/logs/
workers.tomcat_home=/opt/jakarta-tomcat-4.1.12
workers.java_home=$(JAVA_HOME)
ps =/
worker.list=acmi1
woker.acmi1.port
woker.acmi1.host
woker.acmi1.type=ajp13
woker.acmi1.lbfactor=1
woker.acmi1.cachesize=10
woker.acmi1.socket_keepalive=1
woker.acmi1.socket_timeout=300
There is some other stuff for a jni inprocess worker and an lb worker but it's all
commented (#) out for now