tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Date Thu, 09 Sep 2010 11:21:07 GMT
On 09/09/2010 12:01, Amol Puglia wrote:
> Hello Pid,
> 
> I have set the jk log level to debug and i can see following messages in the mod_jk log.
> 
> It seems request is going to tomcat and apache is giving 500 error messages.
> 
> kindly let me know how to proceed further.

Please provide error logs from Tomcat.


p


> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[1] [Pragma] = [No-cache]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[2] [Cache-Control] = [no-store]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[3] [Last-Modified] = [FRI, JAN 29 2099 23:59:59 GMT]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[4] [Expires] = [Thu, 01 Jan 1970 00:00:00 GMT]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[5] [Content-Type] = [text/html]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669):
Header[6] [Content-Length] = [855]
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): received from ajp13 pos=0 len=859 max=8192
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0000    03 03 57 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D  - ..W.............
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0010    0A 3C 68 74 6D 6C 3E 0D 0A 3C 48 45 41 44 3E 0D  - .<html>..<HEAD>.
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0020    0A 0D 0A 0D 0A 0D 0A 0D 0A 20 20 20 20 3C 6C 69  - .............<li
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0030    6E 6B 20 72 65 6C 3D 22 73 74 79 6C 65 73 68 65  - nk.rel="styleshe
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0040    65 74 22 20 68 72 65 66 3D 22 68 74 74 70 73 3A  - et".href="https:
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0050    2F 2F 6D 61 72 73 76 63 61 33 2E 73 77 2E 65 72  - //marsvca3.sw.er
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0060    69 63 73 73 6F 6E 2E 73 65 2F 65 4D 61 74 72 69  - icsson.se/eMatri
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0070    78 2F 6A 73 70 2F 6D 61 72 73 2F 67 65 6E 65 72  - x/jsp/mars/gener
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0080    61 6C 2F 65 53 74 79 6C 65 53 68 65 65 74 45 78  - al/eStyleSheetEx
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0090    70 6C 6F 72 65 72 2E 63 73 73 22 3E 0D 0A 20 20  - plorer.css">....
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00a0    0D 0A 0D 0A 0D 0A 0D 0A 09 3C 73 63 72 69 70 74  - .........<script
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00b0    20 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76 61 53  - .language="JavaS
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00c0    63 72 69 70 74 22 20 73 72 63 3D 22 2F 65 4D 61  - cript".src="/eMa
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00d0    74 72 69 78 2F 6A 73 2F 66 6F 72 6D 46 75 6E 63  - trix/js/formFunc
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00e0    74 69 6F 6E 73 2E 6A 73 22 3E 3C 2F 73 63 72 69  - tions.js"></scri
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 00f0    70 74 3E 0D 0A 09 0D 0A 0D 0A 09 3C 73 63 72 69  - pt>........<scri
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0100    70 74 20 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76  - pt.language="Jav
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0110    61 53 63 72 69 70 74 22 3E 0D 0A 09 09 69 66 20  - aScript">....if.
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0120    28 21 66 61 6C 73 65 20 26 26 20 21 66 61 6C 73  - (!false.&&.!fals
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0130    65 20 29 0D 0A 09 09 7B 0D 0A 09 09 09 74 6F 70  - e.)....{.....top
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0140    2E 6C 6F 63 61 74 69 6F 6E 2E 68 72 65 66 3D 22  - .location.href="
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0150    68 74 74 70 3A 2F 2F 6D 61 72 73 76 63 61 33 2E  - http://marsvca3.
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0160    73 77 2E 65 72 69 63 73 73 6F 6E 2E 73 65 22 3B  - sw.ericsson.se";
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0170    0D 0A 09 09 09 2F 2F 77 69 6E 64 6F 77 2E 6F 70  - .....//window.op
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0180    65 6E 28 22 2F 65 4D 61 74 72 69 78 2F 6A 73 70  - en("/eMatrix/jsp
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0190    2F 6D 61 72 73 2F 67 65 6E 65 72 61 6C 2F 65 6D  - /mars/general/em
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01a0    78 4C 6F 67 69 6E 53 65 73 73 69 6F 6E 54 69 6D  - xLoginSessionTim
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01b0    65 4F 75 74 2E 6A 73 70 22 2C 20 22 4C 6F 67 69  - eOut.jsp",."Logi
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01c0    6E 57 69 6E 64 6F 77 22 2C 20 22 77 69 64 74 68  - nWindow",."width
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01d0    3D 32 37 30 2C 68 65 69 67 68 74 3D 33 35 30 2C  - =270,height=350,
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01e0    72 65 73 69 7A 61 62 6C 65 3D 79 65 73 22 29 3B  - resizable=yes");
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 01f0    0D 0A 09 09 7D 0D 0A 0D 0A 20 20 20 20 20 20 20  - ....}...........
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0200    20 66 75 6E 63 74 69 6F 6E 20 73 68 6F 77 49 6E  - .function.showIn
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0210    74 65 72 6E 61 6C 4D 65 73 73 61 67 65 28 29 20  - ternalMessage().
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0220    7B 0D 0A 20 20 20 20 20 20 20 20 20 20 20 20 76  - {..............v
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0230    61 72 20 73 74 72 46 65 61 74 75 72 65 73 20 3D  - ar.strFeatures.=
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0240    20 22 77 69 64 74 68 3D 35 33 30 2C 68 65 69 67  - ."width=530,heig
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0250    68 74 3D 33 35 30 22 3B 0D 0A 20 20 20 20 20 20  - ht=350";........
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0260    20 20 20 20 20 20 76 61 72 20 55 52 4C 20 3D 22  - ......var.URL.="
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0270    2F 65 4D 61 74 72 69 78 2F 6A 73 70 2F 6D 61 72  - /eMatrix/jsp/mar
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0280    73 2F 67 65 6E 65 72 61 6C 2F 73 65 72 76 65 72  - s/general/server
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0290    49 6E 66 6F 2F 73 68 6F 77 49 6E 74 65 72 6E 61  - Info/showInterna
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02a0    6C 4D 65 73 73 61 67 65 2E 6A 73 70 22 3B 0D 0A  - lMessage.jsp";..
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02b0    20 20 20 20 20 20 20 20 20 20 20 20 77 69 6E 64  - ............wind
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02c0    6F 77 2E 6F 70 65 6E 28 55 52 4C 2C 20 22 77 69  - ow.open(URL,."wi
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02d0    6E 64 6F 77 6E 61 6D 65 22 2C 20 22 74 6F 6F 6C  - ndowname",."tool
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02e0    62 61 72 3D 6E 6F 2C 6C 6F 63 61 74 69 6F 6E 3D  - bar=no,location=
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 02f0    6E 6F 2C 64 69 72 65 63 74 6F 72 69 65 73 3D 6E  - no,directories=n
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0300    6F 2C 73 74 61 74 75 73 3D 79 65 73 2C 6D 65 6E  - o,status=yes,men
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0310    75 62 61 72 3D 6E 6F 2C 77 69 64 74 68 3D 37 30  - ubar=no,width=70
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0320    30 2C 68 65 69 67 68 74 3D 33 35 30 2C 74 6F 70  - 0,height=350,top
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0330    3D 31 30 2C 6C 65 66 74 3D 31 30 22 29 3B 0D 0A  - =10,left=10");..
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0340    20 20 20 20 20 20 20 20 7D 0D 0A 0D 0A 09 3C 2F  - ........}.....</
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0350    73 63 72 69 70 74 3E 0D 0A 09 00 00 00 00 00 00  - script>.........
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ws_write::mod_jk.c (453): written 855 out
of 855
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): received from ajp13 pos=0 len=2 max=8192
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1058): 0000    05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - ................
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_process_callback::jk_ajp_common.c (1544):
AJP13 protocol: Reuse is OK
> [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_done::jk_ajp_common.c (2422): recycling
connection pool slot=0 for worker tomcat3
> [Thu Sep 09 12:16:49 2010] loadbalancer marsvca7.sw.ericsson.se 0.073332
> [Thu Sep 09 12:16:49 2010] [1723:1] [info] jk_handler::mod_jk.c (2254): No body with
status=500 for worker=loadbalancer
> 
> 
> --- On Thu, 9/9/10, Pid <pid@pidster.com> wrote:
> 
> From: Pid <pid@pidster.com>
> Subject: Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Thursday, September 9, 2010, 2:53 PM
> 
> On 09/09/2010 09:59, Mladen Turk wrote:
>> On 09/09/2010 09:28 AM, Amol Puglia wrote:
>>> Hello Team,
>>>
>>> We have also noticed that jk module is loading properly in apache.
>>>
>>> [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24
>>> DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal
>>> operations
>>>
>>
>> Beside that it loads, are there any log messages
>> that would help decide why it fails.
> 
> +1
> 
> If the connection is making it through to Tomcat, then the 500 will
> appear in an access log there, if you have one configured, or as a
> stacktrace in the main logs.
> 
> If not, then the HTTPD error_log will give you an idea of what the error
> really is.
> 
> 
> p
> 
>> I see you have worker.xxx.host=server_name
>> Make sure the mod_jk can resolve the server_name
>> to a correct address, and that your firewall (if set)
>> allows those ports. For performance reasons it
>> might be better to use IP addresses instead server names.
>>
>> Also set JkLogLevel debug and see what's going on.
>>
>> Regards
> 
> 
> 
> 
>       


Mime
View raw message