From user-return-14841-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Fri May 07 15:27:12 2010 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 70700 invoked from network); 7 May 2010 15:27:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 15:27:12 -0000 Received: (qmail 3377 invoked by uid 500); 7 May 2010 15:27:11 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 3331 invoked by uid 500); 7 May 2010 15:27:11 -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 3324 invoked by uid 99); 7 May 2010 15:27:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 15:27:11 +0000 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.18.14.12] (HELO HPC.MsState.Edu) (130.18.14.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 15:27:03 +0000 Received: from groupwise.hpc.msstate.edu (root@Groupwise.HPC.MsState.Edu [130.18.14.14]); by HPC.MsState.Edu (8.14.4/8.14.4/HPC-Mailhost/1.27) with ESMTP; id o47FQhxG021183 for ; Fri, 7 May 2010 10:26:43 -0500 (CDT) Received: from ERC_DO-MTA by groupwise.hpc.msstate.edu with Novell_GroupWise; Fri, 07 May 2010 10:26:42 -0500 Message-Id: <4BE3EAD8.4AAF.00BD.0@cavs.msstate.edu> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Fri, 07 May 2010 10:26:32 -0500 From: "Marshall Crocker" To: Subject: Problem with log4j and geronimo 2.1.1 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm having a problem getting geronimo 2.1.1 to use my log4j.properties. = It works fine with geronimo 2.1.4 but our production server is still at = 2.1.1. My webapp deploys fine but when starting I get this error: 19100: 2010-05-07 10:06:47,882 ERROR [runtime.GBeanInstanceState] - Error = while starting; GBean is now in the FAILED state: abstractName=3D"org.test/= mywebapp/1.0/war?J2EEApplication=3Dnull,WebModule=3Dorg.test/mywebapp/1.0/w= ar,j2eeType=3DSystemLog,name=3DDirectoryLog4jConfiguration" 19101: java.lang.NullPointerException 19102: at org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigu= rationGBean.(ApplicationLog4jConfigurationGBean.java:52) 19103: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native = Method) 19104: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons= tructorAccessorImpl.java:39) 19105: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega= tingConstructorAccessorImpl.java:27) 19106: at java.lang.reflect.Constructor.newInstance(Constructor.java:494) 19107: at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(G= BeanInstance.java:948) 19108: at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFull= Start(GBeanInstanceState.java:268) 19109: at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBean= InstanceState.java:102) 19110: at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecurs= ive(GBeanInstanceState.java:124) 19111: at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(G= BeanInstance.java:555) 19112: at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean= (BasicKernel.java:379) 19113: at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigu= rationGBeans(ConfigurationUtil.java:456) 19114: at org.apache.geronimo.kernel.config.KernelConfigurationManager.sta= rt(KernelConfigurationManager.java:187) 19115: at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sta= rtConfiguration(SimpleConfigurationManager.java:549) 19116: at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sta= rtConfiguration(SimpleConfigurationManager.java:530) 19117: at sun.reflect.GeneratedMethodAccessor495.invoke(Unknown Source) 19118: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:25) 19119: at java.lang.reflect.Method.invoke(Method.java:585) 19120: at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke= (ReflectionMethodInvoker.java:34) 19121: at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOpe= ration.java:124) 19122: at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInst= ance.java:832) 19123: at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.j= ava:57) 19124: at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawO= perationInvoker.java:35) 19125: at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercep= t(ProxyMethodInterceptor.java:96) 19126: at org.apache.geronimo.kernel.config.EditableConfigurationManager$$= EnhancerByCGLIB$$2b316b2d.startConfiguration() 19127: at org.apache.geronimo.deployment.plugin.local.StartCommand.run(Sta= rtCommand.java:67) 19128: at java.lang.Thread.run(Thread.java:595) In my geronimo-web.xml I have META-INF/log4j.properties And my log4j.properties file is in WEB-INF/classes/META-INF/ This exception isn't very helpful and the fact that it works with 2.1.4 = makes me think that its a bug in geronimo 2.1.1. =20 Any ideas on how to make it work without upgrading? Thanks, Marshall