I am trying to front Jboss/Tomcat with Apache HTTPD server. Installed mod_jk 
1.2.14  and created the worker.properties. I can see that I have the connection 
to workers and it does work when I call the http://localhost:7777/   but if I 
were to call my servlet or any jsp pages http://localhost:7777/viewserver/rw it 
does not work. Here is my conf files as well as the logs from mod_jk and 
apache..

http.conf:
 # Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module apache_1.3.27_install/libexec/mod_jk_1.2.14.so

# Where to find workers.properties
JkWorkersFile apache_1.3.27_install/conf/workers.properties

# Where to put jk logs
JkLogFile /apache_1.3.27_install/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel trace 

# 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 %q %r %U %v %V %w"

# Mount your applications
JkMount / node1
JkMount /viewserver  node1
JkMount / node2
JkMount /viewserver  node2






worker.properties


worker.node1.port=10009
worker.node1.host=175.45.72.102
worker.node1.type=ajp13
worker.node1.lbfactor=1

worker.node2.port=10009
worker.node2.host=175.45.72.105
worker.node2.type=ajp13
worker.node2.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=node1, node2


mod-jk log


[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_shm.c (196): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_shm.c (240): Truncated shared 
memory to 66560
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_shm.c (272): Initialized 
shared memory size=66560 free=65536 addr=0xfe3f0000
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_shm.c (152): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_shm.c (182): Opened shared 
memory lock /opt/apache_1.3.27/logs/jk-runtime-status.lock
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_shm.c (184): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_shm.c (295): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] mod_jk.c (2031): Initialized 
shm:/opt/apache_1.3.27/logs/jk-runtime-status
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (89): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (307): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_uri_worker_map.c (323): rule 
map size is 2
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (190): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_uri_worker_map.c (260): 
wildchar rule /*=node2 was added
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (298): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (190): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_uri_worker_map.c (260): 
wildchar rule /viewserver/*=node2 was added
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (298): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_uri_worker_map.c (340): there 
are 2 rules
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (358): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_uri_worker_map.c (105): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (49): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (230): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (236): creating 
worker node1
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (121): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (141): about to 
create instance node1 of ajp13
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (83): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (117): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (154): about to 
validate and init node1
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (34): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1783): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1806): worker 
node1 contact is '172.16.72.102:10009'
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1812): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (36): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (47): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1879): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1895): setting 
socket keepalive to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1934): setting 
socket timeout to -1
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1938): setting 
socket buffer size to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1942): setting 
connection recycle timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1946): setting 
cache timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1950): setting 
connect timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1954): setting 
reply timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1958): setting 
prepost timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1962): setting 
recovery opts to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1966): setting 
number of retries to 3
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1835): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1843): setting 
connection cache size to 1
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1867): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1999): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (53): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (192): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (248): removing old 
node1 worker
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (236): creating 
worker node2
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (121): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (141): about to 
create instance node2 of ajp13
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (83): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (117): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (154): about to 
validate and init node2
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (34): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1783): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1806): worker 
node2 contact is '172.16.72.105:10009'
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1812): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (36): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (47): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1879): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1895): setting 
socket keepalive to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1934): setting 
socket timeout to -1
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1938): setting 
socket buffer size to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1942): setting 
connection recycle timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1946): setting 
cache timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1950): setting 
connect timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1954): setting 
reply timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1958): setting 
prepost timeout to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1962): setting 
recovery opts to 0
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1966): setting 
number of retries to 3
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1835): enter
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_ajp_common.c (1843): setting 
connection cache size to 1
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1867): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp_common.c (1999): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_ajp13_worker.c (53): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (192): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [debug] jk_worker.c (248): removing old 
node2 worker
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (264): exit
[Fri Oct 28 15:01:12 2005][25547:0000] [trace] jk_worker.c (83): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_worker.c (91): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_worker.c (204): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [debug] jk_worker.c (212): close_workers 
will destroy worker node1
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp13_worker.c (61): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (2005): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [debug] jk_ajp_common.c (2012): up to 1 
endpoints to close
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (718): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (730): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (2033): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp13_worker.c (63): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [debug] jk_worker.c (212): close_workers 
will destroy worker node2
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp13_worker.c (61): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (2005): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [debug] jk_ajp_common.c (2012): up to 1 
endpoints to close
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (718): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (730): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp_common.c (2033): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_ajp13_worker.c (63): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_worker.c (220): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_worker.c (94): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_uri_worker_map.c (134): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_uri_worker_map.c (117): enter
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_uri_worker_map.c (123): exit
[Fri Oct 28 15:01:13 2005][25548:0000] [trace] jk_uri_worker_map.c (140): exit




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904205#3904205

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904205


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to