Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 91493 invoked from network); 31 Mar 2010 02:35:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 02:35:53 -0000 Received: (qmail 30685 invoked by uid 500); 31 Mar 2010 02:35:53 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 30562 invoked by uid 500); 31 Mar 2010 02:35:51 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 30551 invoked by uid 99); 31 Mar 2010 02:35:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 02:35:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of spinergywmy@gmail.com designates 74.125.92.149 as permitted sender) Received: from [74.125.92.149] (HELO qw-out-1920.google.com) (74.125.92.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 02:35:44 +0000 Received: by qw-out-1920.google.com with SMTP id 9so2135897qwj.40 for ; Tue, 30 Mar 2010 19:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=hIKCZWso0jPmjP8zRzgVvCtEtt26jJqqfB+V/5c/MdA=; b=X4xp2srNk2TWcfl/Xx26jIWJN50eO2P0Q0fSk13sFcgf97/QVoofqcjvygV2ltbfho 5EN/FksOix8PYrI9um15ONAmh2iffAsjYTb1dwab5Ja4NFEfu6Su82e5LAEfR+2pb+KT +f4/DdicjdKDi4WVbp+9589lXS53rohEGjl0g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=abcyNfTi2+ub4U8kTqnUUZxGRpNdhhapekZTISKJFUuWtcvMeHdCr9zIhLtv1z9sEC 5qlQDVFu4BLzTW2w2id8NntU+qrEdaom2ftNHNwebgxfQzSY2uGrNrMPSL3Z3qlm+cwB hQTyL3t+gwWVTnjG+XzBhgfZhNVUT18B0UnDk= MIME-Version: 1.0 Received: by 10.229.215.80 with HTTP; Tue, 30 Mar 2010 19:35:23 -0700 (PDT) In-Reply-To: References: <3f055e931003290251m1bae7ba9x5857f769cd1a0826@mail.gmail.com> Date: Wed, 31 Mar 2010 10:35:23 +0800 Received: by 10.229.239.148 with SMTP id kw20mr2160313qcb.10.1270002923354; Tue, 30 Mar 2010 19:35:23 -0700 (PDT) Message-ID: <3f055e931003301935x7726ab8frd3e3661d8760a97@mail.gmail.com> Subject: Re: Standalone instance with multiple log4j setting From: WM YEOH To: Log4J Users List Content-Type: multipart/alternative; boundary=0016e64cba261c3beb04830f997d X-Virus-Checked: Checked by ClamAV on apache.org --0016e64cba261c3beb04830f997d Content-Type: text/plain; charset=ISO-8859-1 Hi Jake, Thank you for the article. I tried to put the log4j jar under application classloader level as well as war WEB-INF/lib, and set the delegate to false in sun-web.xml, and that works fine. However, I got class not found exception when came across EJB classes. I even specified the log4j jar in manifest file but no luck. I couldn't find any useful information how to configure sun apps to load parent-last. I am wondering is it no other way to have EJB classes reference log4j? Appreciate if you can again point me to the right direction. Thank you. Regards, Wooi Meng On Mon, Mar 29, 2010 at 10:57 PM, Jacob Kjome wrote: > Research Logger Repository Selectors. Here's a resource to get you > started.... > http://wiki.apache.org/logging-log4j/AppContainerLogging > > Jake > > > > On Mon, 29 Mar 2010 17:51:56 +0800 > WM YEOH wrote: > >> Hi there, >> >> Current setup, >> - App server - Sun Java System Application Server 9.1_01 >> - deploy one ear(own war) and another war applications in the same stand >> alone instance >> >> I have setup in a way that each application has its own log4j.xml but >> assign >> to different log files, for instance, log4jA.xml -> A.log and log4jB.xml >> -> >> B.log. However, the debug message only written into one log file instead >> of >> its designated log file. I could not package the log4j jar into the war as >> other classes in separate jar (within ear) used logger. Therefore, I have >> to >> specified log4j jar in the server classpath. Which I believed that would >> be >> the issue that causing the debug message not written to the correct log >> file. >> >> I am wondering is there any settings to solve the problem that I faced. Or >> is there any alternatives to solve the problem. >> >> Appreciate anyone help me to solve the problem as soon as possible. Please >> let me know if you need further information. >> >> Thank you. >> >> Regards >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --0016e64cba261c3beb04830f997d--