Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 69521 invoked from network); 9 Sep 2008 02:20:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 02:20:06 -0000 Received: (qmail 66468 invoked by uid 500); 9 Sep 2008 02:20:02 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 66409 invoked by uid 500); 9 Sep 2008 02:20:02 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 66397 invoked by uid 99); 9 Sep 2008 02:20:02 -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 19:20:02 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 02:19:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52DE8234C1D1 for ; Mon, 8 Sep 2008 19:19:44 -0700 (PDT) Message-ID: <305729824.1220926784332.JavaMail.jira@brutus> Date: Mon, 8 Sep 2008 19:19:44 -0700 (PDT) From: "Adam Ruggles (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-4286) Can't configure log4j using log4jResource in ApplicationLog4jConfigurationGBean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Can't configure log4j using log4jResource in ApplicationLog4jConfigurationGBean ------------------------------------------------------------------------------- Key: GERONIMO-4286 URL: https://issues.apache.org/jira/browse/GERONIMO-4286 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: Logging Affects Versions: 2.1.2 Environment: Java 1.5 Mac OS X 10.4.11 Reporter: Adam Ruggles The following configuration doesn't seem to work with Geronimo/Tomcat in my plan file 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. I receive the following error: 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) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.