Hi Christopher, I've never used tcpdump before, but it seems the trick is 
knowing how to configure it with the various switches to extract what one 
wants. I took a stab at it below, but I can't find much meaning in it. This 
snippet captures the time when Adobe accesses the webaddress. Is there a better 
command you can give me to use to give more relevant information? (below: 
xx.xxx.xxx.163 = client and xx.xxx.xxx.196 = server)

Hi Andre, yes there's a few more JkMounts that I didn't mention since they're 
unrelated, and I corrected below the additional typos you found. Also, the 
initial part of the mod_jk.log below was critical to understanding the problem 
(I'll edit it to make it more obvious -- see THE CAPITAL LETTING inside the 
mod_jk snippet below).

[root@host3 /etc]# tcpdump -v -n port http 
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 
bytes 
09:12:45.953686 IP (tos 0x0, ttl 50, id 60955, offset 0, flags [DF], proto TCP 
(6), length 64) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [S], cksum 0xf26a (correct), 
seq 2296787062, win 65535, options [mss 1460,nop,wscale 3,nop,nop,TS val 
837669530 ecr 0,sackOK,eol], length 0 
09:12:45.953728 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), 
length 60) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [S.], cksum 0xb37b (correct), 
seq 1455038508, ack 2296787063, win 14480, options [mss 1460,sackOK,TS val 
428508894 ecr 837669530,nop,wscale 7], length 0 
09:12:46.047635 IP (tos 0x0, ttl 50, id 38932, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [.], cksum 0x1ad7 (correct), 
ack 1, win 65535, options [nop,nop,TS val 837669531 ecr 428508894], length 0 
09:12:46.047658 IP (tos 0x0, ttl 50, id 55301, offset 0, flags [DF], proto TCP 
(6), length 181) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [P.], cksum 0xb731 (correct), 
seq 1:130, ack 1, win 65535, options [nop,nop,TS val 837669531 ecr 428508894], 
length 129 
09:12:46.047688 IP (tos 0x0, ttl 64, id 42769, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [.], cksum 0x197e (correct), 
ack 130, win 122, options [nop,nop,TS val 428508988 ecr 837669531], length 0 
09:12:46.050453 IP (tos 0x0, ttl 64, id 42770, offset 0, flags [DF], proto TCP 
(6), length 1500) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [.], cksum 0xfe97 (incorrect 
-> 0x6a47), seq 1:1449, ack 130, win 122, options [nop,nop,TS val 428508991 ecr 
837669531], length 1448 
09:12:46.050461 IP (tos 0x0, ttl 64, id 42771, offset 0, flags [DF], proto TCP 
(6), length 1200) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [P.], cksum 0xfd6b (incorrect 
-> 0x62d7), seq 1449:2597, ack 130, win 122, options [nop,nop,TS val 428508991 
ecr 837669531], length 1148 
09:12:46.050505 IP (tos 0x0, ttl 64, id 42772, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [F.], cksum 0x0f56 (correct), 
seq 2597, ack 130, win 122, options [nop,nop,TS val 428508991 ecr 837669531], 
length 0 
09:12:46.145851 IP (tos 0x0, ttl 50, id 64715, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [.], cksum 0x0fd0 (correct), 
ack 2597, win 65535, options [nop,nop,TS val 837669532 ecr 428508991], length 0 
09:12:46.145878 IP (tos 0x0, ttl 50, id 58941, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [.], cksum 0x0fcf (correct), 
ack 2598, win 65535, options [nop,nop,TS val 837669532 ecr 428508991], length 0 
09:12:46.155260 IP (tos 0x0, ttl 50, id 33156, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.163.36246 > xx.xxx.xxx.196.http: Flags [F.], cksum 0x0fce (correct), 
seq 130, ack 2598, win 65535, options [nop,nop,TS val 837669532 ecr 428508991], 
length 0 
09:12:46.155293 IP (tos 0x0, ttl 64, id 42773, offset 0, flags [DF], proto TCP 
(6), length 52) 
xx.xxx.xxx.196.http > xx.xxx.xxx.163.36246: Flags [.], cksum 0x0eec (correct), 
ack 131, win 122, options [nop,nop,TS val 428509095 ecr 837669532], length 0 

----- Original Message ----- 
From: modjkl...@comcast.net 
To: users@tomcat.apache.org 
Sent: Thursday, February 16, 2012 8:55:35 AM 
Subject: Re: mod_jk doesn't map to software-generated web address, but maps to 
this address when I enter it into browser 

Thanks Andre for catching my typo (correct in practice, but incorrect when I 
edited it for this email). I've corrected it below. Also, switched to plain 
text instead of HTML. 

Thanks Christopher -- I eliminated the attachments. I've tried to make it more 
readable for color-blind people, use in-text clues, etc. below. I've also 
included my workers.properties file. You're right that the JkMountCopy isn't 
needed (I was desperate to find a solution and this was one attempt to fix it 
that had no effect). I was worried about the colon in the mod_jk.log file lines 
as well, but since it is consistently everywhere, I assumed it was a formatting 
issue related to mod_jk. I'm not switching ports or changing protocols. I'm 
trying to keep everything simple. The address you pointed out is the IP address 
for host3.mydomain.com. As an experiment, I replaced host3.mydomain.com with 
the actual IP address for the server (used by VirtualHost) in the input field 
for Host URL in Adobe's software so there's be no mistake which IP address 
would receive Adobe's request, but the mod_jk.log appears exactly the same. 

--------------------original message is below--------------- 

Hello. I'm trying to setup Adobe's Flexbuilder 4.6 software to access 
mydomain.com/mywebapp using port 80 on Apache Webserver 2.2.21 and connect 
using mod_jk 1.2.32 on a remote Linux CentOS 6.2 server. I'm puzzled by the 
mod_jk.log file, which I've included a snippet below and attached as a text 
file. I also attached an image of Adobe Flexbuilder's wizard. 

As you can see from the image, this wizard has a button called "Validate 
Configuration" that attempts to connect to the remote server provided in the 
input field labeled "Root URL". If I enter the following into this Root URL 
field 

http://mydomain.com:8080/mywebapp 

the Adobe Flashbuilder software states that a connection was successfully made 
to the server. However, if I enter the following instead: 

http://mydomain.com/mywebapp 

the Adobe Flashbuilder software states that it cannot connect to the server. 

When I review the mod_jk.log file (attached as a file and also shown below), I 
see Adobe's request in the 2nd line, where the mod_jk.log entry reports a 
missing uri map for host3.mydomain.com:/mywebapp/flex_wizard_... Here's that 
line: 

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map 
forhost3.mydomain.com:/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm
 

Later in this log snippet , you'll see an entry for attempting to map URI ' 
/mywebapp/flex_wizard_... Here's that line: 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI 
'/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm' from 
6 maps 

This entry was created when I opened a web browser and pointed it to the 
address Adobe was trying to access, which I obtained from the log file, that 
is, 
http://mydomain.com/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm.
 In this case, a match was found with JkMount and a worker assigned, and so 
mod_jk seems to be working. Here's the relevant line: 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
find_match::jk_uri_worker_map.c (863): Found a wildchar match 
'/mywebapp/*=worker1' 

My question is, why does mod_jk work when I manually enter the web address 
Adobe is trying to access but not work when Adobe accesses it? Can you see 
anything in the log file that would indicate the address I entered is different 
than the address Adobe is using, that could explain this? I really need this 
working, so any help MUCH appreciated. Thanks in advance. 

--------httpd.conf file snippet--------- 

For reference, the httpd.conf file includes the following (the ... indicates 
non-relevant code I removed for simplicity): 

LoadModule jk_module modules/mod_jk.so 

JkWorkersFile /etc/httpd/conf/workers.properties 
JkLogFile /etc/httpd/logs/mod_jk.log 
JkLogLevel debug 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize 
+ForwardURICompat -ForwardDirectories 
JkRequestLogFormat "%w %V %T" 
... 
Listen 0.0.0.0:80 
User nobody 
Group nobody 
ExtendedStatus On 
ServerAdmin webmas...@webxyz.net 
ServerName host3.mydomain.com 
LogLevel warn 
Timeout 300 
ServerSignature On 
... 
UserDir public_html 
... 

<Location /whm-server-status> 
SetHandler server-status 
Order deny,allow 
Deny from all 
Allow from 127.0.0.1 
</Location> 

<Location /server-status> 

SetHandler server-status 
Order deny,allow 
Deny from all 
Allow from xx.xx.xxx.0/24 
</Location> 


<Location /server-info> 
SetHandler server-info 
Order deny,allow 
Deny from all 
Allow from xx.xx.xxx.0/24 
</Location> 
... 

NameVirtualHost 67.227.243.196:80 
NameVirtualHost * 
... 
<VirtualHost xx.xxx.xxx.196:80> 
ServerName mydomain.com 
ServerAlias www.mydomain.com host3.mydomain.com 
DocumentRoot /home/gkk/public_html 
ServerAdmin webmas...@mydomain.com 
UseCanonicalName Off 
JkMountCopy On 
JkMount /mywebapp/* worker1 
JkMount /mywebapp worker1 
</VirtualHost> 

------workers.properties file---------- 

The workers.properties file is: 

worker.list=worker1 
worker.worker1.type=ajp13 
worker.worker1.host=localhost 
worker.worker1.port=8009 

------------mod_jk.log file snippet---------- 

[Thu Feb 16 06:46:37 2012] [13722:140020322740160] [debug] jk_handler::mod_jk.c 
(2662): Service finished with status=404 for worker=worker1 

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for 
host3.mydomain.com:/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm
 

RIGHT NOW THE ADOBE SOFTWARE WILL ATTEMPT TO CONNECT TO THE SERVER...

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_map_to_storage::mod_jk.c (3647): missing uri map for 
host3.mydomain.com:/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm
 

NOTICE THE WEB ADDRESS ADOBE IS USING IN THE ABOVE LINE

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for 
host3.mydomain.com:/404.shtml 

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_map_to_storage::mod_jk.c (3647): missing uri map for 
host3.mydomain.com:/404.shtml 

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for 
host3.mydomain.com:/cp_errordocument.shtml 

[Thu Feb 16 06:47:35 2012] [13723:140020322740160] [debug] 
jk_map_to_storage::mod_jk.c (3647): missing uri map for 
host3.mydomain.com:/cp_errordocument.shtml 

[Thu Feb 16 06:49:46 2012] [13724:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for host3.mydomain.com:/ 

[Thu Feb 16 06:49:46 2012] [13724:140020322740160] [debug] 
jk_map_to_storage::mod_jk.c (3647): missing uri map for host3.mydomain.com:/ 

[Thu Feb 16 06:49:46 2012] [13724:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for 
host3.mydomain.com:/index.html.var 

... 

[Thu Feb 16 06:55:02 2012] [13724:140020322740160] [debug] 
jk_translate::mod_jk.c (3488): missing uri map for 
host3.mydomain.com:/whm-server-status 

[Thu Feb 16 06:55:02 2012] [13724:140020322740160] [debug] 
jk_map_to_storage::mod_jk.c (3647): missing uri map for 
host3.mydomain.com:/whm-server-status 

IN THE NEXT LINE, I HAVE TAKEN ADOBES ADDRESS SEEN ABOVE AND ENTERED IT 
MANUALLY INTO A BROWSER WINDOW

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI 
'/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm' from 
6 maps 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
find_match::jk_uri_worker_map.c (850): Attempting to map context URI 
'/mywebapp/*=worker1' source 'JkMount' 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
find_match::jk_uri_worker_map.c (863): Found a wildchar match 
'/mywebapp/*=worker1' 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] jk_handler::mod_jk.c 
(2522): Into handler jakarta-servlet worker=worker1 r->proxyreq=0 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
wc_get_worker_for_name::jk_worker.c (116): found a worker worker1 

IN THIS CASE, MOD_JK DOES CORRECTLY SEND THIS ADDRESS TO THE WEB CONTAINER FOR 
PROCESSING (THE QUESTION OF THIS POST IS: WHY DIDN'T IT DO THIS WHEN ADOBE USED 
THE SAME ADDRESS ABOVE?)

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
wc_maintain::jk_worker.c (339): Maintaining worker worker1 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
wc_get_name_for_type::jk_worker.c (293): Found worker type 'ajp13' 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
init_ws_service::mod_jk.c (1024): Service protocol=HTTP/1.1 method=GET 
ssl=false host=(null) addr=xx.xx.xxx.163 name=mydomain.com port=80 auth=(null) 
user=(null) laddr=xx.xxx.xxx.196 

raddr=xx.xxx.xxx.163 
uri=/mywebapp/flex_wizard_project_test_script_server_550713325917236076.htm 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_get_endpoint::jk_ajp_common.c (3161): acquired connection pool slot=0 after 
0 retries 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (647): ajp marshaling done 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_service::jk_ajp_common.c (2440): processing worker1 with 2 retries 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_send_request::jk_ajp_common.c (1624): (worker1) all endpoints are 
disconnected. 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
jk_open_socket::jk_connect.c (484): socket TCP_NODELAY set to On 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
jk_open_socket::jk_connect.c (608): trying to connect socket 23 to 
127.0.0.1:8009 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
jk_open_socket::jk_connect.c (634): socket 23 [127.0.0.1:40539 -> 
127.0.0.1:8009] connected 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (1195): sending to ajp13 pos=4 
len=450 max=8192 

[Thu Feb 16 06:55:21 2012] [13725:140020322740160] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (1195): 0000 12 34 01 BE 02 02 
00 08 48 54 54 50 2F 31 2E 31 - .4......HTTP/1.1 


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