Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 4092 invoked from network); 9 Apr 2009 07:38:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 07:38:03 -0000 Received: (qmail 20711 invoked by uid 500); 9 Apr 2009 07:38:02 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 20664 invoked by uid 500); 9 Apr 2009 07:38:02 -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 20656 invoked by uid 99); 9 Apr 2009 07:38:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 07:38:02 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.184] (HELO fmmailgate09.web.de) (217.72.192.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 07:37:52 +0000 Received: from web.de by fmmailgate09.web.de (Postfix) with SMTP id 866F12AD72DF for ; Thu, 9 Apr 2009 09:37:32 +0200 (CEST) Received: from [83.236.215.41] by freemailng2702.web.de with HTTP; Thu, 09 Apr 2009 09:37:31 +0200 Date: Thu, 09 Apr 2009 09:37:31 +0200 Message-Id: <1105033010@web.de> MIME-Version: 1.0 From: Jochen Zink To: user@geronimo.apache.org Subject: Re: Problems using log4j Gbean Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX198WoKiqF4KhnZgVN1eZS0w5OecWYqVaFyVyrBxZLckMJkHf /1FZc0xNZ7kQHP/xtKg27x5jg/Nwhu6iMMLuucqb7YsqkgGeDCYrLfEZIU4L Q== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Great help! Thanks! I will try to use the patch! Thank you very much! Regards Jochen > -----Urspr=FCngliche Nachricht----- > Von: "Ivan" > Gesendet: 09.04.09 06:57:48 > An: user@geronimo.apache.org > Betreff: Re: Problems using log4j Gbean Another way without chaning anything is,=20 > 1. Put something like below in your deployment plan > > > log4j > log4j > jar > > > org.slf4j > slf4j-api > jar > > > org.slf4j > slf4j-log4j12 > jar > > > > org.apache.log4j > org.slf4j > > 2. Do NOT use the ApplicationLog4jConfigurationGBean gbean, just put=20 > a log4j.properties in your application's classpath, let log4j itself=20 > to manage the configurations. >=20 > It should work as expected.=20 > Ivan >=20 > 2009/4/9 Ivan > Yes, it needs to be improved. > I opened a JIRA in https://issues.apache.org/jira/browse/GERONIMO- > 4615. > If you could like to, you could apply the patch to the code repo=20 > which is used. Build the geronimo-system module, and paste it to the=20 > lib folder and repository folder. > Also, you need to add something to your deployment plan. Then ... > Thanks ! > Ivan >=20 > 2009/4/8 Jochen Zink >=20 > The util part, has the same package name, because the classes are=20 > located inside a util.jar, which is used by both applications and=20 > placed in WEB-INF/lib of both applications. The Applications itself=20 > have different package names. >=20 > But it is also imaginable, that the applications have the same=20 > package names. Application A can deployed twice, if the module ID and=20 > context-root in geronimo-web.xml is different. It would be nice=20 > feature, if it is possible to log in different Logfiles, in this=20 > situation. >=20 > Regards > Jochen >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: "Ivan" > > Gesendet: 07.04.09 16:01:48 > > An: user@geronimo.apache.org > > Betreff: Re: Problems using log4j Gbean >=20 > Are the application A has the same package names with the package B =3F > > I mean > > In the properties File for application A : > > log4j.logger.de.test.webapp.util=3DDEBUG,fileA > > > > In the properties File for application B : > > log4j.logger.de.test.webappB.util=3DDEBUG,fileB > > > > IIRC, they should not the same, for Log4j share a global configuratio > n. > > > > Ivan > > > > 2009/4/7 Jochen Zink > > Hello, > > > > we use geronimo 2.1.1. For Logging, we use Log4j and the log4j=20 > Plugin. > > > > We have two Webapplications (WebApp A and WebApp B) running. Both=20 > use > > a "util.jar". > > > > If we deployApplication A before application B, Application A logs > > into Application Bs logfile. If we deploy first application B, > > application B logs into application As logfile. > > > > I guess, this is related to the equal package name from util.jar. > > > > Is there a possibility to avoid this=3F > > > > Here is geronimo-web.xml (plugin part) for application A.=20 > Application > > Bs is equal. Only the properties name is different. > > geronimo. > > system.logging.log4j.ApplicationLog4jConfigurationGBean"> > > var/log/applicationA.properties > attribute> > > > > ServerInfo > > > > > > > > And here is the content of the log4j properties File for application > > A. This is equal to application Bs properties. Only fileA changed to > > fileB and so on. > > > > log4j.appender.fileA=3Dorg.apache.log4j.DailyRollingFileAppender > > log4j.appender.fileA.threshold=3DDEBUG > > log4j.appender.fileA.file=3D${org.apache.geronimo.server.dir}/var/log/ > > appA.log > > log4j.appender.fileA.layout=3Dorg.apache.log4j.PatternLayout > > log4j.appender.fileA.layout.ConversionPattern=3DApplication A: %d{dd. > MM. > > yyyy, HH:mm:ss} %p (%c:%L) %m%n > > > > log4j.logger.de.test.webapp.util=3DDEBUG,fileA > > log4j.logger.de.test.webapplicationA=3DDEBUG,fileA > > log4j.additivity.de.webapp.util=3Dfalse > > log4j.additivity.de.webapplicationA=3Dfalse > > > > Thanks a lot! > > Regards > > Jochen > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > Psssst! Schon vom neuen WEB.DE MultiMessenger geh=F6rt=3F > > Der kann`s mit allen: http://www.produkte.web.de/messenger/=3Fdid=3D3123 > > > > -- > > Ivan > > > > >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Psssst! Schon vom neuen WEB.DE MultiMessenger geh=F6rt=3F > Der kann`s mit allen: http://www.produkte.web.de/messenger/=3Fdid=3D3123 >=20 > --=20 > Ivan >=20 > --=20 > Ivan >=20 >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F GRATIS f=FCr alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de