AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
Hi, I get the following AJP errors when I try to access a webpage after starting 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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread john
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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 10:48, André Warnier a...@ice-sa.com wrote: 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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 10:48, André Warnier a...@ice-sa.com wrote: 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

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:27, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: [...] Yes, that would be more reliable than my 2 seconds above. Although if one really wanted to split hairs in 4 parts (lenghtwise), one could argue that the fact that the port mentioned in Server is

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...]                lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option. But with only the -i, it works. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...] lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option. But with only the -i, it works. Thanks, very useful. I'll try that.

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:47, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...]               lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option.

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Mikolaj Rydzewski
On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep details, like checking for particular ports to be opened? I have httpd, mod_proxy_ajp and

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:56, Mikolaj Rydzewski m...@ceti.pl wrote: On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep details, like checking

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:56, Mikolaj Rydzewski m...@ceti.pl wrote: On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep