Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 10074 invoked from network); 12 Jan 2011 13:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 13:33:00 -0000 Received: (qmail 85168 invoked by uid 500); 12 Jan 2011 13:32:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84717 invoked by uid 500); 12 Jan 2011 13:32:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 84706 invoked by uid 99); 12 Jan 2011 13:32:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 13:32:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.50.160.34] (HELO smtpout.karoo.kcom.com) (212.50.160.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 13:32:46 +0000 X-IronPort-AV: E=Sophos;i="4.60,312,1291593600"; d="scan'208";a="469006810" Received: from unknown (HELO [192.168.0.2]) ([91.84.95.233]) by smtpout.karoo.kcom.com with ESMTP; 12 Jan 2011 13:32:24 +0000 Message-ID: <4D2DAD27.4030408@didm.co.uk> Date: Wed, 12 Jan 2011 13:31:19 +0000 From: Peter Sparkes Reply-To: peter@didm.co.uk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat6 with mod_jk References: <4D278F6C.1030404@didm.co.uk> <4D27975A.6030109@pidster.com> <4D290F2C.809@didm.co.uk> <4D2B6E0F.60205@christopherschultz.net> In-Reply-To: <4D2B6E0F.60205@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thank you for your help Christopher. I have got it to work and I will publish my configuration when I have sorted out a couple of other things which I will raise separately Regards Peter > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Peter, > > On 1/8/2011 8:28 PM, Peter Sparkes wrote: >> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so > ... > >> file /etc/apache2/conf.d/jk.conf is >> >> JkWorkersFile /etc/apache2/workers.properties >> JkLogFile /var/log/apache2/mod_jk.log >> JkLogLevel debug >> > Are you sure this file is being included in your configuration? > > Try putting an invalid directive in there and running 'apache2 -t' to > see what happens. If you get an error, it's loading your configuration > correctly. > >> file /etc/apache2/sites-enabled/appledorera.org is >> >> ServerAdmin admin@appledorera.org >> ServerName appledorera.org >> ServerAlias www.appledorera.org >> JkMount /* appledorera >> >> >> file /etc/apache2/workers.properties is >> workers.tomcat_home = /usr/local/tomcat >> workers.java_home= / usr/lib/jvm/java-6-sun >> ps = / > These three settings (above) are no longer used. Do yourself a favor and > remove them. > >> worker.list=appledorera >> Set properties for appledorera > The above line may be confusing to the configuration file parser. You > should use "#" at the beginning of the line to indicate comments. The > above might be causing your problem. > >> worker.appledorera.type=ajp13 >> worker.appledorera.host=localhost >> worker.appledorera.port=8109 > Looks good. > >> file /usr/local/tomcat/instances/appledorera/conf/server.xml I have amended >> to >> >> and >> to >> > Ok. > >> When the tomcat instance in /usr/local/tomcat/instances/appledorera is >> stopped >> http://appledorera.org/ gives Service Temporarily Unavailable >> and tail /var/log/apache2/mod_jk.log is >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] >> jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] >> jk_open_socket::jk_connect.c (548): trying to connect socket 14 to >> 127.0.0.1:8109 >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] >> jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8109 failed >> (errno=111) >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] >> ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to >> (127.0.0.1:8109) (errno=111) >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] >> ajp_send_request::jk_ajp_common.c (1359): (appledorera) connecting to >> backend failed. Tomcat is probably not started or is listening on the >> wrong port (errno=111) >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] >> ajp_service::jk_ajp_common.c (2194): (appledorera) sending request to >> tomcat failed (recoverable), because of error during request sending >> (attempt=2) >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] >> ajp_service::jk_ajp_common.c (2212): (appledorera) Connecting to tomcat >> failed. Tomcat is probably not started or is listening on the wrong port >> [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] >> ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting >> endpoint with sd = 4294967295 (socket shutdown) >> [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [debug] >> ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for >> worker appledorera >> [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [info] >> jk_handler::mod_jk.c (2364): Service error=-3 for worker=appledorera > > This looks like correct behavior to me. > >> When the tomcat instance in /usr/local/tomcat/instances/appledorera is >> started >> http://appledorera.org/ gives an empty page >> and tail /var/log/apache2/mod_jk.log is >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 0000 04 01 90 >> 00 0B 42 61 64 20 52 65 71 75 65 73 74 - .....Bad.Request >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 0010 00 00 00 >> 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................ >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_unmarshal_response::jk_ajp_common.c (608): status = 400 >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_unmarshal_response::jk_ajp_common.c (615): Number of headers is = 0 >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from >> ajp13 pos=0 len=2 max=8192 >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 0000 05 01 00 >> 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................ >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_process_callback::jk_ajp_common.c (1669): AJP13 protocol: Reuse is OK >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting >> endpoint with sd = 14 >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for >> worker appledorera >> [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] >> jk_handler::mod_jk.c (2348): Service finished with status=400 for >> worker=appledorera > That's the response from the server, and doesn't include the request > made. Can you empty your mod_jk log file, restart httpd, make a /single/ > request that should go to Tomcat, and then post the mod_jk.log file back > to the list? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk0rbg8ACgkQ9CaO5/Lv0PBW7QCgi2l44TawQqUvCueCDfmop2Ja > XrQAnAgmzN3PgbnBpOcdoFGU8/KO7WJj > =ibJe > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org