Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JK2 Multiple Workers

843841Jan 26 2004 — edited Feb 18 2004
Does 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
#############################################
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2004
Added on Jan 26 2004
4 comments
214 views