You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Blah2006 <vi...@authernative.com> on 2006/07/21 00:20:48 UTC

Apache to Tomcat via JK on different machines --- 503 / socket errno=60

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) 


MACHINE 1:

- 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 mod_jk.so

- $APACHE_HOME/conf contains workers.properties that looks like this: 

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=1.2.3.4 (IP of Machine 2)
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300



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





MACHINE 2:

- 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"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector
				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"
             resourceName="UserDatabase"/>

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

      </Host>

    </Engine>

  </Service>

</Server>



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 1.2.3.4:8009 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 (1.2.3.4:8009) 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: http://www.nabble.com/Apache-to-Tomcat-via-JK-on-different-machines-----503---socket-errno%3D60-tf1977581.html#a5425612
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Apache to Tomcat via JK on different machines --- 503 / socket errno=60

Posted by Brian Munroe <br...@gmail.com>.
On 7/20/06, Blah2006 <vi...@authernative.com> wrote:
> MACHINE 2:
> - Microsoft Windows XP Professional, Version 2002, Service Pack 2


> [Tue Jul 18 16:33:33 2006] [info]  jk_open_socket::jk_connect.c (444):
> connect to 1.2.3.4:8009 failed with errno=60

I think erno=60 is a timeout error code.  Are you sure MACHINE 2 isn't
running a firewall blocking port 8009?

-- brian

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org