Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 120C692BE for ; Mon, 17 Oct 2011 16:59:11 +0000 (UTC) Received: (qmail 17209 invoked by uid 500); 17 Oct 2011 16:59:10 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 17164 invoked by uid 500); 17 Oct 2011 16:59:09 -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 17155 invoked by uid 99); 17 Oct 2011 16:59:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 16:59:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hoju@visi.com designates 208.42.184.244 as permitted sender) Received: from [208.42.184.244] (HELO g2host.com) (208.42.184.244) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 16:59:01 +0000 Received: from [162.136.192.1] (account hoju@visi.com) by mailback4.g2host.com (CommuniGate Pro WEBUSER 5.3.11) with HTTP id 4077936 for log4j-user@logging.apache.org; Mon, 17 Oct 2011 11:58:40 -0500 From: "Jacob Kjome" Subject: Re: Log4j sample example with EAR application To: "Log4J Users List" X-Mailer: CommuniGate Pro WebUser v5.3.11 Date: Mon, 17 Oct 2011 11:58:40 -0500 Message-ID: In-Reply-To: <32665592.post@talk.nabble.com> References: <32569225.post@talk.nabble.com> <4E8E8568.7070601@visi.com> <32665592.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1; format="flowed" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I haven't used JBOSS in ages, so I have no specific instructions for you.� But, ultimately, this is just a classloading question. Please consult your JBOSS classloading documentation.� If you want a single instance of Log4j to be used across all applications, then you need to place the log4j jar and config in a location where it can be seen by all apps in a parent classloader. Jake On Mon, 17 Oct 2011 02:22:22 -0700 (PDT) �"shaikbaji.forums" wrote: > > Hi Jake, > > Thanks for your kind information. > > I am using JBOSS as server and I am using JBOSS Studio 2.0 as an IDE. > > Could you please send me any sample EAR application with log4j? > > Regards, > Baji Shaik > > Jacob Kjome wrote: >> >> >> What server?��If Weblogic, try placing log4j.jar in the EAR's APP-INF/lib >> and the >> config in APP-INF/classes.��You won't need to place log4j in each webapp. >> >> Jake >> >> >> >> On 9/30/2011 8:12 AM, shaikbaji.forums wrote: >>> >>> Hi, >>> >>> I have designed a EAR project, It contains few EJB projects and one WEB >>> project. I want to use the same log file across all the sub projects in >>> that >>> EAR so can you please send me any sample application which is same as my >>> requirement. >>> >>> >>> I just tried like as follow: >>> >>> >>> 1)I have copied the same log4j.properties file in every EJB and WEB >>> project >>> SRC folder. >>> >>> 2)I have added the depended log4j.jar files to EAR and have given >>> reference >>> to the EJB projects. >>> >>> 3)I have copied the log4j.jar to WEB-INF/lib folder of��my WEB project. >>> >>> >>> When I am running my application, It's logging only my WEB project logs, >>> It's not logging my EJB project logs. >>> >>> >>> Kindly help me out. >>> >>> >>> Thanks in advance!!! >>> >>> >>> Regards, >>> Baji >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >> For additional commands, e-mail: log4j-user-help@logging.apache.org >> >> >> > > -- > View this message in context: >http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32665592.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >For additional commands, e-mail: log4j-user-help@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org