Hi.

The problem can also be due just to the difference in startup time between Apache httpd and Tomcat. At the time Apache httpd (and its embedded mod_proxy_ajp module) try to contact Tomcat, Tomcat has possibly not yet "opened" its Connector on port 8009, which causes the host to refuse a connection to that port.

In my experience anything involving Java tends to take a while to "start the machinery" (it is after all a "java virtual machine"). In the practice thus, what we always do in such configurations, is to start Tomcat first (which really means mostly "start the java virtual machine which runs Tomcat")
, wait a couple of seconds, and then start the Apache httpd part.




Joe Hansen wrote:
I uninstalled Tomcat and installed a newer version (6.0.33) and the problem
disappeared. It is strange because the config files are the same.

On Wed, Oct 19, 2011 at 2:16 AM, <j...@gniffelnieuws.net> wrote:

Hi
I get the following AJP errors when I try to access a webpage after
ztarting
Apache and Tomcat. Both Apache web server and Tomcat start up fine
but I get these errors in Apache logs and I get a 503 Service
Temporarily Unavailable message in the browser. Apparently Tomcat
isn't seeing the request.

[error] (OS 10061) No connection could be made because the target machine
actively refused it.  : proxy: AJP: attempt to connect to
127.0.0.1:8009(localhost) failed
[error] ap_proxy_connect_backend disabling worker for (localhost)
[error] proxy: AJP: failed to make connection to backend: localhost

Can you please help me find out where the problem lies.

Have you checked the port is listening? (netstat -an) and the firewall
permits the connection (telnet localhost 8009)

John

--
/(bb|[^b]{2})/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to