Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69CC3D247 for ; Tue, 4 Dec 2012 19:42:22 +0000 (UTC) Received: (qmail 24737 invoked by uid 500); 4 Dec 2012 19:42:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24674 invoked by uid 500); 4 Dec 2012 19:42:18 -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 24663 invoked by uid 99); 4 Dec 2012 19:42:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 19:42:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 19:42:12 +0000 Received: by mail-vb0-f45.google.com with SMTP id p1so3415091vbi.4 for ; Tue, 04 Dec 2012 11:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5vzHNgLEP6lJND2twFIzanK2Z7rCnJNGDp4KZktGWs8=; b=reTNQ+2VjTycghsMlC4nyC2UKulYIUTBU2ez8Oao+xd+aE2PRoA69XP+zN8PHkUkBM MHuRICHpPy1iCy8sD3s6q20xwAwBTkfnCDROETL8uNc5yT7SkKSlF/rymLLyRV9RAIdq vFkb0ayIIFAfscXOqohhYOjZUAXTD+LkdsPMaGGosRe7L3iZTXvupPxMN/osZWfcvvX0 pLSq6nORrx1MnPY+LOATS19WrkNqrcG0j41Vo505m4W0IM8cyEwRAjrttTVfuyCOnYPV iZUHsMMSpJETVtSkA3h6NtrxbtjJ+DH7x69uBQ2fgCJhT8k21CUbi5G42PULgOAD8jUv WCcg== MIME-Version: 1.0 Received: by 10.52.88.33 with SMTP id bd1mr10823696vdb.70.1354650111074; Tue, 04 Dec 2012 11:41:51 -0800 (PST) Received: by 10.58.249.199 with HTTP; Tue, 4 Dec 2012 11:41:51 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Dec 2012 23:41:51 +0400 Message-ID: Subject: Re: Running Tomcat under jsvc - logging problems From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2012/12/4 Lyallex : > On 4 December 2012 18:50, Konstantin Kolinko wrote: >> >> 1. "java.util.logging.ConsoleHandler" prints to System.err. >> >> Some other "console logging" implementations log to System.out. >> >> Do you need a ConsoleHandler at all? (You are effectively printing the >> same log messages into two places a) ConsoleHandler, b) FileHandler ). >> > > Well possibly not but it's irrelevant as logging.properties is being > ignored > so I don't get the output anyway, particularly I get no log file named > MyApp ... > > >> >> 2. To initialize logging properly you need to configure system >> properties "java.util.logging.config.file" and >> "java.util.logging.manager" >> the same way as they are set by catalina.sh file. >> >> Have you specified the "java.util.logging.manager" property in your >> arguments to jsvc? >> > > Well no but then I never had it with 6.0.18 and that logged perfectly, > also catalina.sh is not executed when running under jsvc but I think you may > just be using that as an example ... I hope Yes, as an example. I'd also recommend to use daemon.sh that is included with Tomcat 7. I do not know why it worked in 6.0.18. Have you checked with what arguments it runs (e.g. via /proc/) ? You say that it wasn't you who installed 6.0.18. There is usually a wrapper script, like that daemon.sh. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org