tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L Sowders" <rsowd...@usgs.gov>
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" <TrefG@areeba.com.au>
10/22/2002 07:20 PM
Please respond to "Tomcat Users List"

 
        To:     <tomcat-user@jakarta.apache.org>
        cc: 
        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 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" />

You have the above reversed.  Change them around.

>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
___|
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 workers.properties file.  Start off 
with a basic one, something like:

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties

I beginning to wonder what mod_jk.conf looks like.

HTH 

rls


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message