tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Huettermann" <mhuetterm...@pironet-ndh.com>
Subject AW: mod-jk loadbalancing: "Tomcat is down or refused connection. No response has been sent to the client (yet)"
Date Tue, 25 Jul 2006 13:50:48 GMT
Oh thanks, Guru, I did not see the wood for the trees. Thanks a lot. :)

Regards
Michael



-----Urspr√ľngliche Nachricht-----
Von: Raghupathy,Gurumoorthy [mailto:gurumoorthy.raghupathy@uk.fid-intl.com] 
Gesendet: Dienstag, 25. Juli 2006 14:36
An: 'Tomcat Users List'
Betreff: RE: mod-jk loadbalancing: "Tomcat is down or refused connection. No response has
been sent to the client (yet)"

Your 8180 is a HTTP connector rather than AJP13 connector ...

Make changes in the server.xml of tomcat to enable AJP13 on 8180 ...
And then restart both tomcat and apache ...

Regards
Guru


Gurumoorthy Raghupathy
Systems Operations - Fidelity Investments International
* Tel: +44 1737 836798
* Internal: 8-724 6798
* Tel (R): +442086610646
* Tel (R): +447899033459
* Tel (S): +447736059647
* Mail-Zone : XTW2A
* E-Mail: <<mailto:gurumoorthy.raghupathy@uk.fid-intl.com>>

Important: Fidelity Investments International, Fidelity Investment Services Limited, Fidelity
Pensions Management and Financial Administration Services Limited (a Fidelity Group company)
are all authorised and regulated in the UK by the Financial Services Authority and have their
registered offices at Oakhill House, 130 Tonbridge Road, Hildenborough, Tonbridge, Kent TN11
9DZ.
Tel 01732 361144. Fidelity only gives information on products and does not give investment
advice to private clients based on individual circumstances.
Any comments or statements made are not necessarily those of Fidelity. The information transmitted
is intended only for the person or entity to which it is addressed and may contain confidential
and/or privileged material. If you received this in error, please contact the sender and delete
the material from any computer. All e-mails sent from or to Fidelity may be subject to our
monitoring procedures. 'Direct link to Fidelitys website.
<http://www.fidelity-international.com/world/index.html>





Hello.

I try to set up an Apache Web Server loadbalancing incoming requests to
a JBoss Cluster (respectively to its Tomcat. For testing purposes the
"cluster loadbalancing" is limited to one node, see below). Everything
looks pretty nice, unfortunately Apache Web Server tells me 
"Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later."

The mod_jk.log says (full log below): 
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (955):
Tomcat has forced a connection close for socket 844
[Tue Jul 25 13:46:15 2006][4240:4804] [error] jk_ajp_common.c (1531):
Tomcat is down or refused connection. No response has been sent to the
client (yet)
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (1751):
Receiving from tomcat failed, recoverable operation attempt=0
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (1783):
Sending request to tomcat failed,  recoverable operation attempt=

The Tomcat of my JBoss 4.0.2 does not receive any data/request (I see
that in its log).

The JBoss instance respectively the JBoss' Tomcat directly accepts
requests via http://127.0.0.1:8180/test/Servlet successfully.

The whole system is on my desktop:
Apache/2.0.55 (Win32) mod_jk/1.2.17 
The Apache httpd listens on 127.0.0.1 Port 7777 
Windows XP Professional 2002 SP2, no Firewall on local desktop

Thanks for your help.
Michael




-----------Workers.properties (limited to one node to make it more
simple)-------------------
# Define list of workers that will be used
# for mapping requests
worker.list=loadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8180
worker.node1.host=127.0.0.1
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.cachesize=1

# Define Node2
# currently NOT in use
#worker.node2.port=8280
#worker.node2.host=127.0.0.1
#worker.node2.type=ajp13
#worker.node2.lbfactor=1
#worker.node2.cachesize=1

# Load-balancing behaviour
worker.loadbalancer.type=lb
#worker.loadbalancer.balance_workers=node1,node2 NOT in use
worker.loadbalancer.balance_workers=node1
worker.loadbalancer.sticky_session=1

# Status worker for managing load balancer
worker.status.type=status


---------------------mod-jk.conf-------------------------
# Load mod_jk module
# Specify the filenamC:\Programme\Apache2.2\conf\mod_jk.lib
LoadModule jk_module modules\mod_jk.so
 
# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log
 
# Set the jk log level [debug/error/info]
JkLogLevel debug 
 
# Select the log format
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"
 
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
               
# Mount your applications
JkMount /* loadbalancer
 
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
#JkMountFile conf/uriworkermap.properties

# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm 
              
# Add jkstatus for managing runtime data
<Location /jkstatus/>
    JkMount status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>    


------------------Full mod_jk.log-------------------------
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_shm.c (135):
Initialized shared memory size=24704 free=24576 addr=0x940000
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] mod_jk.c (2355):
Initialized shm:memory
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (361):
rule map size is 2
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (298):
wildchar rule /*=loadbalancer was added
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (306):
exact rule /jkstatus/=status was added
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (236):
creating worker loadbalancer
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance loadbalancer of lb
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init loadbalancer
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance node1 of ajp13
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init node1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1842):
worker node1 contact is '127.0.0.1:8180'
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1965):
setting endpoint options:
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1968):
keepalive:        0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1972):
timeout:          -1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1976):
buffer size:      0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1980):
pool timeout:     0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1984):
connect timeout:  0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1988):
reply timeout:    0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1992):
prepost timeout:  0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1996):
recovery options: 0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (2000):
retries:          2
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1879):
setting connection pool size to 1 with min 125
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_lb_worker.c (957):
Balanced worker 0 has name node1 and jvm_route node1 in domain 
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_lb_worker.c (90):
worker node1 gets multiplicity 1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (236):
creating worker status
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance status of status
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init status
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_shm.c (135):
Initialized shared memory size=24704 free=24576 addr=0x940000
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] mod_jk.c (2355):
Initialized shm:memory
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (361):
rule map size is 2
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (298):
wildchar rule /*=loadbalancer was added
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_uri_worker_map.c (306):
exact rule /jkstatus/=status was added
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (236):
creating worker loadbalancer
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance loadbalancer of lb
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init loadbalancer
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance node1 of ajp13
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init node1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1842):
worker node1 contact is '127.0.0.1:8180'
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1965):
setting endpoint options:
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1968):
keepalive:        0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1972):
timeout:          -1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1976):
buffer size:      0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1980):
pool timeout:     0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1984):
connect timeout:  0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1988):
reply timeout:    0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1992):
prepost timeout:  0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1996):
recovery options: 0
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (2000):
retries:          2
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_ajp_common.c (1879):
setting connection pool size to 1 with min 125
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_lb_worker.c (957):
Balanced worker 0 has name node1 and jvm_route node1 in domain 
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_lb_worker.c (90):
worker node1 gets multiplicity 1
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (236):
creating worker status
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (141): about
to create instance status of status
[Tue Jul 25 13:45:46 2006][5488:5540] [debug] jk_worker.c (154): about
to validate and init status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_shm.c (135):
Initialized shared memory size=24704 free=24576 addr=0x940000
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] mod_jk.c (2355):
Initialized shm:memory
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (361):
rule map size is 2
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (298):
wildchar rule /*=loadbalancer was added
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (306):
exact rule /jkstatus/=status was added
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (236):
creating worker loadbalancer
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance loadbalancer of lb
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init loadbalancer
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance node1 of ajp13
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init node1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1842):
worker node1 contact is '127.0.0.1:8180'
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1965):
setting endpoint options:
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1968):
keepalive:        0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1972):
timeout:          -1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1976):
buffer size:      0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1980):
pool timeout:     0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1984):
connect timeout:  0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1988):
reply timeout:    0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1992):
prepost timeout:  0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1996):
recovery options: 0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (2000):
retries:          2
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1879):
setting connection pool size to 1 with min 125
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_lb_worker.c (957):
Balanced worker 0 has name node1 and jvm_route node1 in domain 
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_lb_worker.c (90):
worker node1 gets multiplicity 1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (236):
creating worker status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance status of status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_shm.c (135):
Initialized shared memory size=24704 free=24576 addr=0x940000
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] mod_jk.c (2355):
Initialized shm:memory
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (361):
rule map size is 2
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (298):
wildchar rule /*=loadbalancer was added
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_uri_worker_map.c (306):
exact rule /jkstatus/=status was added
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (236):
creating worker loadbalancer
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance loadbalancer of lb
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init loadbalancer
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance node1 of ajp13
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init node1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1842):
worker node1 contact is '127.0.0.1:8180'
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1965):
setting endpoint options:
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1968):
keepalive:        0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1972):
timeout:          -1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1976):
buffer size:      0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1980):
pool timeout:     0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1984):
connect timeout:  0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1988):
reply timeout:    0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1992):
prepost timeout:  0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1996):
recovery options: 0
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (2000):
retries:          2
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_ajp_common.c (1879):
setting connection pool size to 1 with min 125
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_lb_worker.c (957):
Balanced worker 0 has name node1 and jvm_route node1 in domain 
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_lb_worker.c (90):
worker node1 gets multiplicity 1
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (236):
creating worker status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (141): about
to create instance status of status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_worker.c (154): about
to validate and init status
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_shm.c (87): Shared
memory is already opened
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] jk_shm.c (149): Attached
shared memory [1] size=24576 free=22272 addr=0x940000
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] mod_jk.c (2311): Attached
shm:memory
[Tue Jul 25 13:45:46 2006][4240:3800] [debug] mod_jk.c (2321):
Initialized mod_jk/1.2.17
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_uri_worker_map.c (508):
Attempting to map URI '/test/Servlet' from 2 maps
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_uri_worker_map.c (520):
Attempting to map context URI '/jkstatus/'
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_uri_worker_map.c (520):
Attempting to map context URI '/*'
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_uri_worker_map.c (534):
Found a wildchar match loadbalancer -> /*
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] mod_jk.c (1832): Into
handler jakarta-servlet worker=loadbalancer r->proxyreq=0
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_worker.c (111): found a
worker loadbalancer
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_worker.c (301):
Maintaining worker loadbalancer
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] mod_jk.c (531): Service
protocol=HTTP/1.1 method=GET host=(null) addrr=127.0.0.1 name=127.0.0.1
port=7777 auth=(null) user=(null) laddr=127.0.0.1 raddr=127.0.0.1
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_lb_worker.c (628):
service sticky_session=1
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (2164):
acquired connection pool slot=0
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_lb_worker.c (648):
service worker=node1 jvm_route=node1
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (566): ajp
marshaling done
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (1698):
processing node1 with 2 retries
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_connect.c (328): socket
TCP_NODELAY set to On
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_connect.c (426): trying
to connect socket 844 to 127.0.0.1:8180
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_connect.c (452): socket
844 connected to 127.0.0.1:8180
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (864):
Connected socket 844 to (127.0.0.1:8180)
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
sending to ajp13 pos=4 len=503 max=8192
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0000    12 34 01 F3 02 02 00 08 48 54 54 50 2F 31 2E 31  -
.4......HTTP/1.1
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0010    00 00 0D 2F 74 65 73 74 2F 53 65 72 76 6C 65 74  -
.../test/Servlet
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0020    00 00 09 31 32 37 2E 30 2E 30 2E 31 00 FF FF 00  -
...127.0.0.1....
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0030    09 31 32 37 2E 30 2E 30 2E 31 00 1E 61 00 00 0B  -
.127.0.0.1..a...
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0040    A0 0B 00 0E 31 32 37 2E 30 2E 30 2E 31 3A 37 37  -
....127.0.0.1:77
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0050    37 37 00 A0 0E 00 57 4D 6F 7A 69 6C 6C 61 2F 35  -
77....WMozilla/5
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0060    2E 30 20 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20  -
.0.(Windows;.U;.
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0070    57 69 6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20  -
Windows.NT.5.1;.
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0080    64 65 3B 20 72 76 3A 31 2E 38 2E 30 2E 34 29 20  -
de;.rv:1.8.0.4).
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0090    47 65 63 6B 6F 2F 32 30 30 36 30 35 30 38 20 46  -
Gecko/20060508.F
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00a0    69 72 65 66 6F 78 2F 31 2E 35 2E 30 2E 34 00 A0  -
irefox/1.5.0.4..
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00b0    01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70 6C  -
..ctext/xml,appl
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00c0    69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70 6C  -
ication/xml,appl
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00d0    69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D  -
ication/xhtml+xm
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00e0    6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30 2E  -
l,text/html;q=0.
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
00f0    39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D 30  -
9,text/plain;q=0
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0100    2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F 2A  -
.8,image/png,*/*
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0110    3B 71 3D 30 2E 35 00 A0 04 00 23 64 65 2D 64 65  -
;q=0.5....#de-de
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0120    2C 64 65 3B 71 3D 30 2E 38 2C 65 6E 2D 75 73 3B  -
,de;q=0.8,en-us;
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0130    71 3D 30 2E 35 2C 65 6E 3B 71 3D 30 2E 33 00 A0  -
q=0.5,en;q=0.3..
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0140    03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65 00  -
...gzip,deflate.
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0150    A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C 75  -
....ISO-8859-1,u
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0160    74 66 2D 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D 30  -
tf-8;q=0.7,*;q=0
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0170    2E 37 00 00 0A 4B 65 65 70 2D 41 6C 69 76 65 00  -
.7...Keep-Alive.
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0180    00 03 33 30 30 00 A0 06 00 0A 6B 65 65 70 2D 61  -
..300.....keep-a
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
0190    6C 69 76 65 00 A0 09 00 31 4A 53 45 53 53 49 4F  -
live....1JSESSIO
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01a0    4E 49 44 3D 41 43 39 35 45 37 45 45 41 37 33 46  -
NID=AC95E7EEA73F
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01b0    35 36 36 31 31 41 34 38 37 42 36 36 36 33 44 31  -
56611A487B6663D1
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01c0    31 31 42 44 2E 6E 6F 64 65 31 00 00 0D 43 61 63  -
11BD.node1...Cac
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01d0    68 65 2D 43 6F 6E 74 72 6F 6C 00 00 09 6D 61 78  -
he-Control...max
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01e0    2D 61 67 65 3D 30 00 A0 08 00 01 30 00 06 00 05  -
-age=0.....0....
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (909):
01f0    6E 6F 64 65 31 00 FF 00 00 00 00 00 00 00 00 00  -
node1...........
[Tue Jul 25 13:45:54 2006][4240:4804] [debug] jk_ajp_common.c (1264):
request body to send 0 - request body to resend 0
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (955):
Tomcat has forced a connection close for socket 844
[Tue Jul 25 13:46:15 2006][4240:4804] [error] jk_ajp_common.c (1531):
Tomcat is down or refused connection. No response has been sent to the
client (yet)
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (1751):
Receiving from tomcat failed, recoverable operation attempt=0
[Tue Jul 25 13:46:15 2006][4240:4804] [info]  jk_ajp_common.c (1783):
Sending request to tomcat failed,  recoverable operation attempt=1
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_connect.c (328): socket
TCP_NODELAY set to On
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_connect.c (426): trying
to connect socket 844 to 127.0.0.1:8180
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_connect.c (452): socket
844 connected to 127.0.0.1:8180
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (864):
Connected socket 844 to (127.0.0.1:8180)
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
sending to ajp13 pos=4 len=503 max=8192
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0000    12 34 01 F3 02 02 00 08 48 54 54 50 2F 31 2E 31  -
.4......HTTP/1.1
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0010    00 00 0D 2F 74 65 73 74 2F 53 65 72 76 6C 65 74  -
.../test/Servlet
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0020    00 00 09 31 32 37 2E 30 2E 30 2E 31 00 FF FF 00  -
...127.0.0.1....
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0030    09 31 32 37 2E 30 2E 30 2E 31 00 1E 61 00 00 0B  -
.127.0.0.1..a...
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0040    A0 0B 00 0E 31 32 37 2E 30 2E 30 2E 31 3A 37 37  -
....127.0.0.1:77
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0050    37 37 00 A0 0E 00 57 4D 6F 7A 69 6C 6C 61 2F 35  -
77....WMozilla/5
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0060    2E 30 20 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20  -
.0.(Windows;.U;.
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0070    57 69 6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20  -
Windows.NT.5.1;.
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0080    64 65 3B 20 72 76 3A 31 2E 38 2E 30 2E 34 29 20  -
de;.rv:1.8.0.4).
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0090    47 65 63 6B 6F 2F 32 30 30 36 30 35 30 38 20 46  -
Gecko/20060508.F
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00a0    69 72 65 66 6F 78 2F 31 2E 35 2E 30 2E 34 00 A0  -
irefox/1.5.0.4..
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00b0    01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70 6C  -
..ctext/xml,appl
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00c0    69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70 6C  -
ication/xml,appl
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00d0    69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D  -
ication/xhtml+xm
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00e0    6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30 2E  -
l,text/html;q=0.
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
00f0    39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D 30  -
9,text/plain;q=0
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0100    2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F 2A  -
.8,image/png,*/*
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0110    3B 71 3D 30 2E 35 00 A0 04 00 23 64 65 2D 64 65  -
;q=0.5....#de-de
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0120    2C 64 65 3B 71 3D 30 2E 38 2C 65 6E 2D 75 73 3B  -
,de;q=0.8,en-us;
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0130    71 3D 30 2E 35 2C 65 6E 3B 71 3D 30 2E 33 00 A0  -
q=0.5,en;q=0.3..
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0140    03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65 00  -
...gzip,deflate.
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0150    A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C 75  -
....ISO-8859-1,u
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0160    74 66 2D 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D 30  -
tf-8;q=0.7,*;q=0
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0170    2E 37 00 00 0A 4B 65 65 70 2D 41 6C 69 76 65 00  -
.7...Keep-Alive.
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0180    00 03 33 30 30 00 A0 06 00 0A 6B 65 65 70 2D 61  -
..300.....keep-a
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
0190    6C 69 76 65 00 A0 09 00 31 4A 53 45 53 53 49 4F  -
live....1JSESSIO
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01a0    4E 49 44 3D 41 43 39 35 45 37 45 45 41 37 33 46  -
NID=AC95E7EEA73F
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01b0    35 36 36 31 31 41 34 38 37 42 36 36 36 33 44 31  -
56611A487B6663D1
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01c0    31 31 42 44 2E 6E 6F 64 65 31 00 00 0D 43 61 63  -
11BD.node1...Cac
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01d0    68 65 2D 43 6F 6E 74 72 6F 6C 00 00 09 6D 61 78  -
he-Control...max
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01e0    2D 61 67 65 3D 30 00 A0 08 00 01 30 00 06 00 05  -
-age=0.....0....
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (909):
01f0    6E 6F 64 65 31 00 FF 00 00 00 00 00 00 00 00 00  -
node1...........
[Tue Jul 25 13:46:15 2006][4240:4804] [debug] jk_ajp_common.c (1264):
request body to send 0 - request body to resend 0
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  jk_ajp_common.c (955):
Tomcat has forced a connection close for socket 844
[Tue Jul 25 13:46:35 2006][4240:4804] [error] jk_ajp_common.c (1531):
Tomcat is down or refused connection. No response has been sent to the
client (yet)
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  jk_ajp_common.c (1751):
Receiving from tomcat failed, recoverable operation attempt=1
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  jk_ajp_common.c (1783):
Sending request to tomcat failed,  recoverable operation attempt=2
[Tue Jul 25 13:46:35 2006][4240:4804] [error] jk_ajp_common.c (1794):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=node1 failed
[Tue Jul 25 13:46:35 2006][4240:4804] [debug] jk_ajp_common.c (2107):
recycling connection pool slot=0 for worker node1
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  jk_lb_worker.c (777):
service failed, worker node1 is in error state
[Tue Jul 25 13:46:35 2006][4240:4804] [debug] jk_lb_worker.c (813):
recoverable error... will try to recover on other host
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  jk_lb_worker.c (829): All
tomcat instances are busy or in error state
[Tue Jul 25 13:46:35 2006]loadbalancer 127.0.0.1 41.058000
[Tue Jul 25 13:46:35 2006][4240:4804] [info]  mod_jk.c (1978): Service
error=0 for worker=loadbalancer


-----------server.xml of JBoss' Tomcat--------------------
<Server>

   <!-- Use a custom version of StandardService that allows the
   connectors to be started independent of the normal lifecycle
   start to allow web apps to be deployed before starting the
   connectors.
   -->
   <Service name="jboss.web"
      className="org.jboss.web.tomcat.tc5.StandardService">

      <!-- A HTTP/1.1 Connector on port 8080 -->
      <Connector port="8080" address="${jboss.bind.address}"
         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
         emptySessionPath="true"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"/>

      <!-- A AJP 1.3 Connector on port 8009 -->
      <Connector port="8009" address="${jboss.bind.address}"
         emptySessionPath="true" enableLookups="false"
redirectPort="8443" 
         protocol="AJP/1.3"/>

      <!-- SSL/TLS Connector configuration using the admin devl guide
keystore
      <Connector port="8443" address="${jboss.bind.address}"
           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
           emptySessionPath="true"
           scheme="https" secure="true" clientAuth="false" 
           keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore"
           keystorePass="rmi+ssl" sslProtocol = "TLS" />
      -->

      <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">

         <!-- The JAAS based authentication and authorization realm
implementation
         that is compatible with the jboss 3.2.x realm implementation.
         - certificatePrincipal : the class name of the
         org.jboss.security.auth.certs.CertificatePrincipal impl
         used for mapping X509[] cert chains to a Princpal.
         -->
         <Realm
className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
 
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
            />
         <!-- A subclass of JBossSecurityMgrRealm that uses the
authentication
         behavior of JBossSecurityMgrRealm, but overrides the
authorization
         checks to use JACC permissions with the current
java.security.Policy
         to determine authorized access.
         <Realm
className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
 
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
            />
         -->

         <Host name="localhost"
            autoDeploy="false" deployOnStartup="false"
deployXML="false">

            <!-- Uncomment to enable request dumper. This Valve "logs
interesting 
                 contents from the specified Request (before processing)
and the 
                 corresponding Response (after processing). It is
especially useful 
                 in debugging problems related to headers and cookies."
            -->
            <Valve
className="org.apache.catalina.valves.RequestDumperValve" />
 
            <!-- Access logger -->
            <Valve
className="org.apache.catalina.valves.FastCommonAccessLogValve"
                prefix="localhost_access_log." suffix=".log"
                pattern="common"
directory="${jboss.server.home.dir}/log" 
                resolveHosts="false" />

            <!-- Uncomment to enable single sign-on across web apps
                deployed to this host. Does not provide SSO across a
cluster.     
            
                If this valve is used, do not use the JBoss
ClusteredSingleSignOn 
                valve shown below. 
             -->
            <!--
            <Valve
className="org.apache.catalina.authenticator.SingleSignOn" />
            -->

            <!-- Uncomment to enable single sign-on across web apps
               deployed to this host AND to all other hosts in the
cluster
               with the same virtual hostname.
            
               If this valve is used, do not use the standard Tomcat
SingleSignOn
               valve shown above.
            
               This valve uses JGroups to communicate across the
cluster.  The 
               JGroups Channel used for this communication can be
configured
               by editing the "sso-channel.xml" file found in the same
folder
               as this file.  If this valve is running on a machine with
multiple
               IP addresses, configuring the "bind_addr" property of the
JGroups
               UDP protocol may be necessary.  Another possible
configuration 
               change would be to enable encryption of intra-cluster
communications.
               See the sso-channel.xml file for more details.
            
               Besides the attributes supported by the standard Tomcat
               SingleSignOn valve (see the Tomcat docs), this version
also supports 
               the following attribute:
            
               partitionName     the name of the cluster partition in
which 
                                 this node participates.  If not set,
the default
                                 value is "sso-partition/" + the value
of the
                                 "name" attribute of the Host element
that
                                 encloses this element (e.g.
"sso-partition/localhost")
            -->
            <!--
            <Valve
className="org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn" />
            -->
         
            <!-- Uncomment to check for unclosed connections and
transaction terminated checks
                 in servlets/jsps.
                 Important: You need to uncomment the dependency on the
CachedConnectionManager
                            in META-INF/jboss-service.xml
            <Valve
className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
 
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionMan
ager"
 
transactionManagerObjectName="jboss:service=TransactionManager" />
            -->

         </Host>

      </Engine>

   </Service>

</Server>



---------------------------------------------------------------------
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


Mime
View raw message