From user-return-11471-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Tue Sep 09 01:41:03 2008 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 31356 invoked from network); 9 Sep 2008 01:41:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 01:41:02 -0000 Received: (qmail 33467 invoked by uid 500); 9 Sep 2008 01:40:59 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 33432 invoked by uid 500); 9 Sep 2008 01:40:59 -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 33418 invoked by uid 99); 9 Sep 2008 01:40:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 18:40:59 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.46] (HELO n58.bullet.mail.sp1.yahoo.com) (98.136.44.46) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 09 Sep 2008 01:39:58 +0000 Received: from [216.252.122.218] by n58.bullet.mail.sp1.yahoo.com with NNFMP; 09 Sep 2008 01:39:12 -0000 Received: from [68.142.237.89] by t3.bullet.sp1.yahoo.com with NNFMP; 09 Sep 2008 01:39:12 -0000 Received: from [66.196.97.142] by t5.bullet.re3.yahoo.com with NNFMP; 09 Sep 2008 01:39:12 -0000 Received: from [127.0.0.1] by omp110.mail.re3.yahoo.com with NNFMP; 09 Sep 2008 01:39:12 -0000 X-Yahoo-Newman-Id: 308494.80936.bm@omp110.mail.re3.yahoo.com Received: (qmail 46539 invoked from network); 9 Sep 2008 01:32:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=bnRJeJTTIaGO8GmPEI1GCW9zTwcquyFjZmpLJnICiBXBkiHE4UablYvtJFkYBJfd7BaYHuWGgT37tScXCi1RFQA8Cn1VRM02Aay+ThT/Ea3kf+Fxk++JZ46zM0IoXh75U6sdAKcr+2m0wKPi8z6qB1/ugIt7nBzeIKrrR5O/3pQ= ; Received: from unknown (HELO ?192.168.1.101?) (david_jencks@209.134.45.200 with plain) by smtp113.plus.mail.re1.yahoo.com with SMTP; 9 Sep 2008 01:32:30 -0000 X-YMail-OSG: 5hKGREMVM1kyXwax9g.7s42huxoesKWAhUlxFXJcCMfnsw6AWvckpgA5Hfaqs5MNkCRR_TImXRJrJBtshf_DftSRagqzeLh5g809J.WILQN7FbFawYADEcWx8z6DjygJADLJ_VwZbnZZwpDfdAhGBtCD X-Yahoo-Newman-Property: ymail-3 Message-Id: From: David Jencks To: user@geronimo.apache.org In-Reply-To: <19384166.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Log4j Issues with 2.1.2 Date: Mon, 8 Sep 2008 21:30:22 -0400 References: <19384166.post@talk.nabble.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org The NPE is a dumb typo, easy to fix. I should have said classLoader instead of classloader. Dunno about the reload >>> stop working problem. That's going to take some experimentation to find out why it doesn't work. Maybe we are abusing log4j registration facilities? Can you file one or two jira issues about these problems? thanks david jencks On Sep 8, 2008, at 9:05 PM, Adam Ruggles wrote: > > I'm having a couple of log4j issues with Geronimo/Tomcat 2.1.2. > > The following configuration doesn't seem to work with Geronimo/ > Tomcat in my > plan file > class > = > "org > .apache > .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"> > log4j.properties > > > I've tried setting it to META-INF/log4j.properites. I've put my > log4j.properties file in META-INF in my jar/ under classes/META-INF > under my > Webapps META-INF folder and under the geronimo META-INF folder. It > doesn't > pick up the file. > > If I place the same file into var/log and use this configuration it > works, > same log4j file. > class > = > "org > .apache > .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"> > var/log/app-log.properties > > ServerInfo > > > > Here is the error I get > > java.lang.NullPointerException > at > org > .apache > .geronimo > .deployment > .hot > .DirectoryHotDeployer.getDeploymentTime(DirectoryHotDeployer.java:237) > at > org > .apache > .geronimo > .deployment.hot.DirectoryMonitor.initialize(DirectoryMonitor.java:240) > at > org > .apache > .geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java: > 213) > at java.lang.Thread.run(Thread.java:613) > 18:01:05,168 ERROR [GBeanInstanceState] Error while starting; GBean > is now > in the FAILED state: > abstractName="corp/myapp/1.0/war?J2EEApplication=null,WebModule=corp/ > myapp/1.0/war,j2eeType=SystemLog,name=MyAppLog4jConfiguration" > java.lang.NullPointerException > at > org > .apache > .geronimo > .system > .logging > .log4j > .ApplicationLog4jConfigurationGBean > .(ApplicationLog4jConfigurationGBean.java:52) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun > .reflect > .NativeConstructorAccessorImpl > .newInstance(NativeConstructorAccessorImpl.java:39) > at > sun > .reflect > .DelegatingConstructorAccessorImpl > .newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java: > 494) > at > org > .apache > .geronimo > .gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948) > 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.GBeanInstanceState.startRecursive(GBeanInstanceState.java: > 124) > at > org > .apache > .geronimo > .gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555) > at > org > .apache > .geronimo > .kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) > at > org > .apache > .geronimo > .kernel > .config > .ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java: > 456) > at > org > .apache > .geronimo > .kernel > .config > .KernelConfigurationManager.start(KernelConfigurationManager.java:188) > at > org > .apache > .geronimo > .kernel > .config > .SimpleConfigurationManager > .startConfiguration(SimpleConfigurationManager.java:562) > at > org > .apache > .geronimo > .kernel > .config > .SimpleConfigurationManager > .startConfiguration(SimpleConfigurationManager.java:543) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun > .reflect > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun > .reflect > .DelegatingMethodAccessorImpl > .invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org > .apache > .geronimo > .gbean > .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: > 34) > at > org > .apache > .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > at > org > .apache > .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java: > 57) > at > org > .apache > .geronimo > .kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) > at > org > .apache > .geronimo > .kernel > .basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java: > 96) > at > org.apache.geronimo.kernel.config.EditableConfigurationManager$ > $EnhancerByCGLIB$$8e27dde.startConfiguration() > at > org > .apache > .geronimo > .deployment > .plugin > .local > .RedeployCommand.redeploySameConfiguration(RedeployCommand.java:229) > at > org > .apache > .geronimo > .deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:101) > at java.lang.Thread.run(Thread.java:613) > > > The second issue I'm having is after I un-deploy/uninstall my webapp > and > then deploy again, the logging in geronimo.out and geronimo.log stop. > > Any idea's? > -- > View this message in context: http://www.nabble.com/Log4j-Issues-with-2.1.2-tp19384166s134p19384166.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >