JK2 Multiple Workers
843841Jan 26 2004 — edited Feb 18 2004Does the jk2 connector support multiple workers like mod_jk does? The applications work fine when I just have the one worker but when I try and add a second worker I get the following in the apache error_log:
Apache/2.0.48 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations
channelSocket.open() connect failed myHost:8009 146 Connection refused
ajp13.connect() failed ajp13:myHost:8009
ajp13.service() failed to connect endpoint errno=146 Connection refused
ajp13.service() Error forwarding ajp13:myHost:8009 1 1
mod_jk.handler() Error connecting to tomcat 120000
Here are my entries for the two workers in workers2.properties (I also added another Connector in httpd.conf):
##### Define the communication channels #####
[channel.socket:myHost:8009]
tomcatId=myHost:8009
[channel.socket:myHost:8007]
tomcatId=myHost:8007
#############################################
############ define the workers #############
[ajp13:myHost:8009]
channel=channel.socket:myHost:8009
[ajp13:myHost:8007]
channel=channel.socket:myHost:8007
#############################################
############# URI Mappings ###################
[uri:/app1/*]
worker=ajp13:myHost:8009
[uri:/app2/*]
worker=ajp13:myHost:8007
#############################################