tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L Sowders" <>
Subject Re: mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on Solaris 8
Date Wed, 23 Oct 2002 06:49:48 GMT
Answers intermixed below,

"Tref Gare" <>
10/22/2002 07:20 PM
Please respond to "Tomcat Users List"

        To:     <>
        Subject:        mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on Solaris 8

>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 (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
>  (symlink to

>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/" jkDebug="info"
>  workersConfig="/opt/jakarta-tomcat-4.1.12/conf/jk/"
>  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" />

You have the above reversed.  Change them around.

> is very minimal todate

>#Define some properties
>ps =/


What exactly is a "woker" anyway.

>There is some other stuff for a jni inprocess worker and an lb worker but 
it's all commented (#) out for now

Why did you change the name of the worker and not provide a port for it? 
You have a lot of problems with your file.  Start off 
with a basic one, something like:

# Setup for apache system
# (optional) make this equal to CATALINA_HOME
# (optional) make this equal to JAVA_HOME

# Definition for Ajp13 worker

# change this line to match apache ServerName and Host name in server.xml


I beginning to wonder what mod_jk.conf looks like.



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message