Hi Jeff, errno 61 on Mac OS X is connection refused:
61 ECONNREFUSED Connection refused. No connection could be made because the target machine actively refused it. It looks a little strange, that you configured to connect to localhost, but the log shows 10.0.1.202. Either the config you showed us is not the one actually used, or your hostname setup is pretty strange. Check if you can connect to 10.0.1.202 port 8009 via telnet, or if you get a connection refused too. If so, you need to determine, if you want to use 10.0.1.202 or localhost, and then why nothing is listening on 8009 there. You can find out about listen sockets via netstat -an Regards, Rainer Jeff Weinberger schrieb: > Hi: > > I am hoping someone can help me identify what I'm sure is a very simple > oversight on my part...but I cannot get Apache+Tomcat working... > > Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk > 1.2.21, Tomcat 6.0.10 > > I can run Tomcat standalone, (i.e. start and browse to localhost:8080 > with no modifications...), but when I try to access via a browser > through apache it fails (503 -service unavailable). > > I see lots of these in my jk logs: > > > [Sun Mar 04 20:42:58 2007] [5950:0000] [debug] > jk_open_socket::jk_connect.c (433): trying to connect socket 10 to > 10.0.1.202:8009 > [Sun Mar 04 20:42:58 2007] [5950:0000] [info] > jk_open_socket::jk_connect.c (451): connect to 10.0.1.202:8009 failed > (errno=61) > [Sun Mar 04 20:42:58 2007] [5950:0000] [info] > ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to > (10.0.1.202:8009) (errno=61) > > and when I try to connect via apache I see lots of these: > > > [Sun Mar 04 20:17:19 2007] [5494:0000] [info] > ajp_send_request::jk_ajp_common.c (1273): (worker1) error connecting to > the backend server (errno=61) > [Sun Mar 04 20:17:19 2007] [5494:0000] [info] > ajp_service::jk_ajp_common.c (1930): (worker1) sending request to tomcat > failed, recoverable operation attempt=2 > [Sun Mar 04 20:17:19 2007] [5494:0000] [error] > ajp_service::jk_ajp_common.c (1942): (worker1) Connecting to tomcat > failed. Tomcat is probably not started or is listening on the wrong port > > I am certain that the port is open, and as far as I can tell, Tomcat is > listening. > > Configuration files and sections are below. > > I don't know where to look next...or what to look for...and any help or > advice or direction is very much appreciated!!! > > Thanks!! > > here's a snippet of my httpd.conf: > > LoadModule jk_module libexec/httpd/mod_jk.so > AddModule mod_jk.c > JkWorkersFile /etc/httpd/workers.properties > JkShmFile /var/log/httpd/mod_jk.shm > JkLogFile /var/log/httpd/mod_jk.log > JkLogLevel debug > JkMount /examples/* worker1 > > Here's my workers.properties: > > workers.tomcat_home=/path/to/tomcat > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > > > And here's my server.xml: > > > <Server port="8005" shutdown="SHUTDOWN"> > <Listener className="org.apache.catalina.core.AprLifecycleListener" > SSLEngine="on" /> > <Listener className="org.apache.catalina.core.JasperListener" /> > <Listener > className="org.apache.catalina.mbeans.ServerLifecycleListener" /> > <Listener > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > <Listener className="org.apache.jk.config.ApacheConfig" > modJk="/usr/libexec/httpd/mod_jk.so" > workersConfig="/etc/httpd/workers.properties" > jkLog="/var/log/httpd/mod_jk.log" jkDebug="debug" /> > <GlobalNamingResources> > <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="path/to/tomcat-users.xml" /> > </GlobalNamingResources> > <Service name="Catalina"> > <Connector port="8080" protocol="HTTP/1.1" > maxThreads="150" connectionTimeout="20000" > redirectPort="8443" /> > <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" > maxThreads="150" scheme="https" secure="true" > clientAuth="false" sslProtocol="TLS" /> > <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> > <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"> > <Listener className="org.apache.jk.config.ApacheConfig" append="true" > jkWorker="worker1" /> > </Host> > </Engine> > </Service> > </Server> --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]