tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blah2006 <>
Subject Apache to Tomcat via JK on different machines --- 503 / socket errno=60
Date Thu, 20 Jul 2006 22:20:48 GMT

Hello, I am very sorry if this is a silly question or has been asked before.
I am kind of new to all this, and even after some extensive searching online
I could not find the answer to my problem.

I am trying to use the JK connector with Apache and Tomcat installed on
different computers. I can get it to work on the same box, but when I try to
do this I am running into issues. Any help would be greately appreciated.
Here are the details (I am trying to get manager to run) 


- Microsoft Windows Server 2003, Standard Edition, Service Pack 1

- Apache v2.0.58 is installed in "C:\Program Files\Apache Group\Apache2"

- $APACHE_HOME/modules contains

- $APACHE_HOME/conf contains that looks like this: 

# Define 1 real worker using ajp13
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13 (IP of Machine 2)

- $APACHE_HOME/conf contains httpd.conf that contains, among other things,
the following: 
Listen 80
LoadModule    jk_module  modules/
JkWorkersFile conf/
JkLogFile     logs/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat     "%w %V %T"
JkMount  /manager* worker1


- Microsoft Windows XP Professional, Version 2002, Service Pack 2

- Apache Tomcat v5.5.12 is installed in "C:\Program Files\Apache Software
Foundation\Tomcat 5.5"

- $TOMCAT_HOME/conf contains server.xml that looks like this: 

<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource name="UserDatabase" auth="Container"
       description="User database that can be updated and saved"
          pathname="conf/tomcat-users.xml" />
  <Service name="Catalina">
				port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3"

    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">





I have tried many different configurations and I seem to be missing
something. This here is the most basic version. I just can't tell what I am
doing wrong.

I am trying to do "http://Machine1_DNS:80/manager" and getting "503: Service
Temporary Unavailable".

>From mod_jk.log: 

[Tue Jul 18 16:33:33 2006] [info]  jk_open_socket::jk_connect.c (444):
connect to failed with errno=60
[Tue Jul 18 16:33:33 2006] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(889): Failed opening socket to ( with (errno=60)
[Tue Jul 18 16:33:33 2006] [info]  ajp_send_request::jk_ajp_common.c (1248):
Error connecting to the Tomcat process.
[Tue Jul 18 16:33:33 2006] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=2

(Of course thats not the real IP :) )

Thank you for your help!

View this message in context:
Sent from the Tomcat - User forum at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message