Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 68254 invoked from network); 3 Dec 2008 21:45:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 21:45:04 -0000 Received: (qmail 56304 invoked by uid 500); 3 Dec 2008 21:45:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 56109 invoked by uid 500); 3 Dec 2008 21:45:13 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 56093 invoked by uid 99); 3 Dec 2008 21:45:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 13:45:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.174.123.51] (HELO dubrium.sys.ma.cait.org) (209.174.123.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 21:43:43 +0000 Received: from st06410722729.caituser.cait.org ([64.107.227.29] helo=russ-linux.cait.org) by dubrium.sys.ma.cait.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1L7zWE-0002NE-H0 for user@geronimo.apache.org; Wed, 03 Dec 2008 15:44:27 -0600 Message-ID: <4936FDBA.6020303@cait.org> Date: Wed, 03 Dec 2008 15:44:26 -0600 From: Russell E Glaue User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: How to set up logging for a connector Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score-External: -1.4 (-) X-Virus-Checked: Checked by ClamAV on apache.org Using geronimo-jetty 2.1.3 I create a new HTTPSelectChannelConnector on port 21050 Suppose I deploy 20 to 30 different web applications to this connector. Then I want to log all activity through that connector to a certain log file, and not the default jetty_yyyy_mm_dd.log file, but a new projectXX_yyyy_mm_dd.log file. How do I do this? I have attempted to start configuring Geronimo using the NCSARequestLog gbean, but I am getting an initialization error (pasted below) on Geronimo start up, erroring on doStart(). I cannot find any written documentation on how to change the log file output for a connector. I have read how to change the log file for an individual web application, but I do not want to do that. I want to change the log file on the connector level. ... var/log/projectXX_yyyy_mm_dd.log dd/MMM/yyyy:HH:mm:ss ZZZ GMT 30 true true org.apache.geronimo.configs jetty6 2.1.3 car JettyWebContainer 21050 8096 0.0.0.0 -1 0 50 0 8192 org.apache.geronimo.configs jetty6 2.1.3 car JettyWebContainer ... Error message on Geronimo startup with above configuration: -- Module 24/67 org.apache.geronimo.configs/j2ee-corba-yoko/2.1.3/car started in 1.558s Module 25/67 org.apache.geronimo.configs/jetty6/2.1.3/car 15:27:20,161 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/jetty6/2.1.3/car?ServiceModule=org.apache.geronimo.configs/jetty6/2.1.3/car,j2eeType=GBean,name=RequestLog" java.lang.NullPointerException at org.apache.geronimo.jetty6.requestlog.NCSARequestLog.doStart(NCSARequestLog.java:113) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541) at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111) at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146) at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176) --