Re: mod_jk / 503 Error

2006-01-26 Thread Mike Sabroff

So what makes you think you are not using localhost?

Neal Whitley wrote:


I have mod_jk / tomcat and apache somewhat working together but I am
getting an error when displaying pages via the connector.

Tomcat is set up and works.  I can hit:
http://www.site.com:8080/examples/
or
http://www.site.com:8009/examples/

However, when I try:  http://www.site.com/examples/
I get a 503 error.  Service Temporarily Unavailable.  The server is
temporarily unable to service your request due to maintenance
downtime or capacity problems. Please try again later.

What stands out in my mod_jk.log is this line:   trying to connect
socket 10 to 127.0.0.1:8009

The system seems to be trying to connect via the local host.  As you
can see from my config files below I do not reference localhost or
the 127.0.0.1 IP address.  Best I can tell JK should be
using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.

Is there a configuration option I am missing?  Or how can I get JK to
use the correct location?

Thanks,

Neal




System Specs:

Lixux/Debian
Apache 1.3.X
Tomcat 4.1.31
JK  1.2.14



mod_jk.log file:

[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI
'/examples/' from 11 maps
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/jsp/security/protected/j_security_check'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/CompressionTest'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/SendMailServlet'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/servletToJsp'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/servlet/*'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/*.jsp'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/snoop'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/*'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match
ajp13 - /examples/*
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI
'/examples/' from 11 maps
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/jsp/security/protected/j_security_check'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/CompressionTest'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/SendMailServlet'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/servletToJsp'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/servlet/*'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/*.jsp'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/snoop'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
context URI '/examples/*'
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match
ajp13 - /examples/*
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
wc_maintain::jk_worker.c (301): Maintaining worker ajp13
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
init_ws_service::mod_jk.c (479): Service protocol=HTTP/1.1 method=GET
host=(null) addrr=68.58.4.70 name=www.site.com port=80 auth=(null)
user=(null) laddr=66.33.192.77 raddr=68.58.4.70
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
ajp_get_endpoint::jk_ajp_common.c (2119): acquired connection cache slot=0
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
[Tue Jan 24 13:53:01 2006] [23378:] [debug]
ajp_service::jk_ajp_common.c (1658): 

Re: mod_jk / 503 Error

2006-01-25 Thread Warren Pace

 
 From: Neal Whitley [EMAIL PROTECTED]
 Date: 2006/01/24 Tue PM 05:40:53 EST
 To: users@tomcat.apache.org
 Subject: mod_jk / 503 Error
 
 I have mod_jk / tomcat and apache somewhat working together but I am 
 getting an error when displaying pages via the connector.
 
 Tomcat is set up and works.  I can hit:
 http://www.site.com:8080/examples/
 or
 http://www.site.com:8009/examples/
 
 However, when I try:  http://www.site.com/examples/
 I get a 503 error.  Service Temporarily Unavailable.  The server is 
 temporarily unable to service your request due to maintenance 
 downtime or capacity problems. Please try again later.
 
 What stands out in my mod_jk.log is this line:   trying to connect 
 socket 10 to 127.0.0.1:8009
 
 The system seems to be trying to connect via the local host.  As you 
 can see from my config files below I do not reference localhost or 
 the 127.0.0.1 IP address.  Best I can tell JK should be 
 using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.
 
 Is there a configuration option I am missing?  Or how can I get JK to 
 use the correct location?
 
 Thanks,
 
 Neal
 
 
 
 
 System Specs:
 
 Lixux/Debian
 Apache 1.3.X
 Tomcat 4.1.31
 JK  1.2.14
 
 
 
 mod_jk.log file:
 
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
 '/examples/' from 11 maps
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/jsp/security/protected/j_security_check'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/CompressionTest'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/SendMailServlet'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servletToJsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servlet/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*.jsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/snoop'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
 ajp13 - /examples/*
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
 '/examples/' from 11 maps
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/jsp/security/protected/j_security_check'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/CompressionTest'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/SendMailServlet'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servletToJsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servlet/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*.jsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/snoop'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
 ajp13 - /examples/*
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 wc_maintain::jk_worker.c (301): Maintaining worker ajp13
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 init_ws_service::mod_jk.c (479): Service protocol=HTTP/1.1 method=GET 
 host=(null) addrr=68.58.4.70 name=www.site.com port=80 auth=(null) 
 user=(null) laddr=66.33.192.77 raddr=68.58.4.70
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 ajp_get_endpoint::jk_ajp_common.c (2119): acquired

Re: mod_jk / 503 Error

2006-01-25 Thread Pulkit Singhal
Hello Neal,

 What stands out in my mod_jk.log is this line:
  trying to connect socket 10 to 127.0.0.1:8009

 The system seems to be trying to connect via the local host.  As you
 can see from my config files below I do not reference localhost or
 the 127.0.0.1 IP address.  Best I can tell JK should be
 using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.

 Is there a configuration option I am missing?
I remember seeing a few posts in this mailing-list which to my understanding
pretty much stated that the worker.properties file is only used to tell the
connector where the tomcat instance is located.
I too tried entering the outward facing ip of my local machine but it
doesn't seem to make a difference. Maybe it would, if tomcat was actually
located on a different machine. But locallly even if i give the website name
or the outward-facing-ip address itself...it uses localhost to talk to
tomcat (after locating it i guess).

 Or how can I get JK to use the correct location?
So what I'm trying to say is that in the end I Couldn't get the connector to
talk with tomcat with anything other than localhost.
AND that it DOES NOT hurt if it uses localhost to talk to Tomcat!!! It
should work fine!

Having said that..I think we should concentrate on these log entries that
you posted to figure out what the error is:
[info]  jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed
with errno=111
[info]  ajp_connect_to_endpoint::jk_ajp_common.c (880): Failed opening
socket to (127.0.0.1:8009) with (errno=111)
[info]  ajp_send_request::jk_ajp_common.c (1239): Error connecting to the
Tomcat process.

I wonder what errno=111 is? Maybe the tomcat experts can help answer this
one.

By the way you mentioned that you cannot access the page via:
http://www.site.com/examples/
BUT can you access it via http://localhost/examples/ ??? If so, I might
write more :)

Cheers,
- Pulkit

On 1/25/06, Warren Pace [EMAIL PROTECTED] wrote:


 
  From: Neal Whitley [EMAIL PROTECTED]
  Date: 2006/01/24 Tue PM 05:40:53 EST
  To: users@tomcat.apache.org
  Subject: mod_jk / 503 Error
 
  I have mod_jk / tomcat and apache somewhat working together but I am
  getting an error when displaying pages via the connector.
 
  Tomcat is set up and works.  I can hit:
  http://www.site.com:8080/examples/
  or
  http://www.site.com:8009/examples/
 
  However, when I try:  http://www.site.com/examples/
  I get a 503 error.  Service Temporarily Unavailable.  The server is
  temporarily unable to service your request due to maintenance
  downtime or capacity problems. Please try again later.
 
  What stands out in my mod_jk.log is this line:   trying to connect
  socket 10 to 127.0.0.1:8009
 
  The system seems to be trying to connect via the local host.  As you
  can see from my config files below I do not reference localhost or
  the 127.0.0.1 IP address.  Best I can tell JK should be
  using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.
 
  Is there a configuration option I am missing?  Or how can I get JK to
  use the correct location?
 
  Thanks,
 
  Neal
 
 
 
  
  System Specs:
 
  Lixux/Debian
  Apache 1.3.X
  Tomcat 4.1.31
  JK  1.2.14
 
  
 
  mod_jk.log file:
 
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI
  '/examples/' from 11 maps
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/jsp/security/protected/j_security_check'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/CompressionTest'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/SendMailServlet'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/servletToJsp'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/servlet/*'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/*.jsp'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/snoop'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
  context URI '/examples/*'
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match
  ajp13 - /examples/*
  [Tue Jan 24 13:53:01 2006] [23378:] [debug]
  map_uri_to_worker::jk_uri_worker_map.c