Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 18118 invoked from network); 26 Mar 2008 14:46:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 14:46:26 -0000 Received: (qmail 94342 invoked by uid 500); 26 Mar 2008 14:46:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94323 invoked by uid 500); 26 Mar 2008 14:46:13 -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 94312 invoked by uid 99); 26 Mar 2008 14:46:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 07:46:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [89.107.16.164] (HELO mx1.ukgrid.net) (89.107.16.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 14:45:22 +0000 Received: from [83.44.36.70] (port=2716 helo=computer) by mx1.ukgrid.net with esmtpa (Exim 4.67; FreeBSD) auth-from a.smith@ukgrid.net envelope-from a.smith@ukgrid.net envelope-to users@tomcat.apache.org id 1JeWvu-000Kdv-94; Wed, 26 Mar 2008 14:48:55 +0000 Message-ID: <009301c88f50$0cddfe90$2601a8c0@computer> From: "Andy Smith" To: Subject: httpd cant talk to tomcat workers Date: Wed, 26 Mar 2008 15:45:34 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0090_01C88F58.6DD55290" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0090_01C88F58.6DD55290 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi list, I'm new to tomcat and am trying to get apache to talk via mod_jk. I am = using httpd 2.2.8 compiled from source mod_jk 1.2.26 from source and tomcat 5.5.23 from Alfresco 2.9B = community. So far I have created a workers.properties based on the example file = included with tomcat 5.5 source (just corrected the paths and set for UNIX) and added the following to my apache = httpd.conf: # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Declare the module for (remove this line on = Apache 2.0.x) #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /opt/alfresco/tomcat/conf/workers.properties # Where to put jk shared memory JkShmFile /var/log/httpd/mod_jk.shm # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the timestamp log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkMount /* ajp13 # Send servlet for context /examples to worker named worker1 #JkMount /alfresco/servlet/* worker1 # Send JSPs for context /examples to worker named worker1 #JkMount /alfresco/*.jsp worker1 #JkOptions +ForwardURICompatUnparsed When I try and connect via a browser to http://hostname/alfresco I get = the error: Service Temporarily Unavailable The server is temporarily unable to service your request due to = maintenance downtime or capacity problems. Please try again later. And in the mod_jk logs I see: [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.class_path' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.cmd_line' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.jvm_lib' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.stdout' is deprecated - please check the documentation = for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.stderr' is deprecated - please check the documentation = for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [info] init_jk::mod_jk.c = (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.class_path' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.cmd_line' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.jvm_lib' is deprecated - please check the = documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.stdout' is deprecated - please check the documentation = for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] = jk_map_validate_property::jk_map.c (410): The attribute = 'worker.inprocess.stderr' is deprecated - please check the documentation = for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [info] init_jk::mod_jk.c = (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] = jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed = (errno=3D111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] = ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to = (127.0.0.1:8009) (errno=3D111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [error] = ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend = failed. Tomcat is probably not started or is listening on the wrong port = (errno=3D111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] = ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat = failed (recoverable), because of error during request sending = (attempt=3D1) One thing Im not getting my head round is which configuration files = tomcat looks in at startup and whether I should be seeing a java process listening on 8009 (i assume yes). How can I = troubleshoot this further? I dont see any errors from tomcat regarding not being able to start a process listening on 8009, = where is this normally done? thanks for any help! Andy. ------=_NextPart_000_0090_01C88F58.6DD55290--