Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 99125 invoked from network); 25 Aug 2007 19:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2007 19:35:55 -0000 Received: (qmail 87338 invoked by uid 500); 25 Aug 2007 19:35:50 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 87283 invoked by uid 500); 25 Aug 2007 19:35:50 -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 87271 invoked by uid 99); 25 Aug 2007 19:35:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2007 12:35:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2007 19:36:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BDC7F71420E for ; Sat, 25 Aug 2007 12:35:30 -0700 (PDT) Message-ID: <10259521.1188070530774.JavaMail.jira@brutus> Date: Sat, 25 Aug 2007 12:35:30 -0700 (PDT) From: "Donald Woods (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-1746) Cannot override default configurationFile value in Log4jService GBean In-Reply-To: <696826863.1142490905067.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated GERONIMO-1746: ----------------------------------- Summary: Cannot override default configurationFile value in Log4jService GBean (was: Updates to Logger through Log Manager portlet under Console are not reflected in the server) Updated title to really describe the reported problem, which was you can't change the default configurationFile value from server-log4j.properties to another filename... > Cannot override default configurationFile value in Log4jService GBean > --------------------------------------------------------------------- > > Key: GERONIMO-1746 > URL: https://issues.apache.org/jira/browse/GERONIMO-1746 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: console, Logging > Affects Versions: 1.0 > Environment: Win XP, Sun JDK 1.4.2_08 > Reporter: Vamsavardhana Reddy > Assignee: Donald Woods > Fix For: 2.0.x, 2.1 > > > Changes made to the logger through Log Manager portlet are not reflected in the server. Through the admin console, I have changed the Config File from server-log4j.properties to a different file. The change is written to config.xml . Inspite of this new file name in config.xml, upon restart, the server still uses server-log4j.properties . > Restarting the server after deleting server-log4j.properties logged the following error to console window. > log4j:ERROR Could not read configuration file from URL [file:/C:/geronimo-1.0/va > r/log/server-log4j.properties]. > java.io.FileNotFoundException: C:\geronimo-1.0\var\log\server-log4j.properties ( > The system cannot find the file specified) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(Unknown Source) > at java.io.FileInputStream.(Unknown Source) > at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) > at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So > urce) > at java.net.URL.openStream(Unknown Source) > at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato > r.java:424) > at org.apache.geronimo.system.logging.log4j.URLConfigurator.doConfigure( > URLConfigurator.java:117) > at org.apache.geronimo.system.logging.log4j.URLConfigurator.configure(UR > LConfigurator.java:44) > at org.apache.geronimo.system.logging.log4j.Log4jService.reconfigure(Log > 4jService.java:518) > at org.apache.geronimo.system.logging.log4j.Log4jService.doStart(Log4jSe > rvice.java:561) > at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI > nstance.java:936) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart > (GBeanInstanceState.java:325) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta > nceState.java:110) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G > BeanInstanceState.java:132) > at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI > nstance.java:537) > at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(Basi > cKernel.java:208) > at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans( > Configuration.java:315) > at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f > 4b4a9b.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:118) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:835) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 178) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 173) > at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:286) > at org.apache.geronimo.system.main.Daemon.(Daemon.java:82) > at org.apache.geronimo.system.main.Daemon.main(Daemon.java:404) > log4j:ERROR Ignoring configuration file [file:/C:/geronimo-1.0/var/log/server-lo > g4j.properties]. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.