Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-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 9A3E3DF7A for ; Tue, 16 Oct 2012 16:17:17 +0000 (UTC) Received: (qmail 47062 invoked by uid 500); 16 Oct 2012 16:17:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 47035 invoked by uid 500); 16 Oct 2012 16:17:17 -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 47028 invoked by uid 99); 16 Oct 2012 16:17:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 16:17:17 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xhhsld@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 16:17:10 +0000 Received: by mail-wi0-f172.google.com with SMTP id hq12so53094wib.13 for ; Tue, 16 Oct 2012 09:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6j+DaeGYN48/gsZmmU/ZUJ7+shbF0mEtzgPFQ89XnC4=; b=fRrnez3Mz918NLWKupHnByYXLmyl5HEzcx+kzNYC7J0f1YinoNG+7odAaG8AkNYQH3 cpJsQGEr35BfjBk7wrrtCl8l3OfidE+yG5V5tIy3wEpWOWWkRFL23LYaeElGoBUNje67 e8qxRxFUnPWuo9SzKaKlYtMt5HDMuICEylfsMWp13X5eE0UctWkvlbWkjRyEmfyv7eb5 x6DdoSpmcbqyUdGQSZfy5vU0mExjp2tzAjfS/joiMXRQVgbtrRUQn8v6AQh5H8ZtZ39r A/GKW1ir82n9L59CSX/f7Md/8mtq2nD6Ic22mES5hm3I/sBxA71s3sZM7mnGAJfrmX+v 9hvg== MIME-Version: 1.0 Received: by 10.180.87.230 with SMTP id bb6mr32983834wib.6.1350404209779; Tue, 16 Oct 2012 09:16:49 -0700 (PDT) Received: by 10.227.55.145 with HTTP; Tue, 16 Oct 2012 09:16:49 -0700 (PDT) In-Reply-To: References: <1350020642276-3985902.post@n3.nabble.com> <1350348930144-3985914.post@n3.nabble.com> <1350367366780-3985917.post@n3.nabble.com> Date: Wed, 17 Oct 2012 00:16:49 +0800 Message-ID: Subject: Re: geronimo 3.0 application specific logging From: Ivan To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=f46d0444e97b3a252004cc2f7bc9 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444e97b3a252004cc2f7bc9 Content-Type: text/plain; charset=ISO-8859-1 How do you configure the shared lib ? use the default (one var/shared) from the server ? could you show the MANIFEST.MF file in the ${baseDir}/META-INF directory Also, considering that shared lib is 'sharable', so those classes in the shared lib will be loaded once. For the logging purpose, I think that there may be issues, as all the deployed applications share the some log4j classes, which is the same that hidden-classes are used to prevent using log4j from server runtimes. 2012/10/16 Zhi Xie > It is very interesting. I'm glad to implement the sharedlib solution. Keep > in contact. :) > > > 2012/10/16 jcyim > >> Thank you for your reply. >> >> That's right. >> I am talking about that issue. >> >> I *did have* log4j.jar in sharedlib, and I properly declared >> . >> but, result was a fail. >> >> However If I included log4j.jar file into my app's lib. It worked. >> >> In other words, using sharedlib fails, but using app's lib works. >> (I guess that the reason of success of second method(to use app's lib) is >> that my log4j library is loaded ahead of geronimo's logging library.) >> and also I suspect that I can not control classloading of geronimo's >> logging >> library using and/or >> >> best regards, >> yim >> >> >> >> -- >> View this message in context: >> http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0-application-specific-logging-tp3985902p3985917.html >> Sent from the Users mailing list archive at Nabble.com. >> > > > > -- > Best Regards > Gary > > -- Ivan --f46d0444e97b3a252004cc2f7bc9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How do you configure the shared lib ? use the default (one var/shared) from= the server ? could you show the MANIFEST.MF file in the ${baseDir}/META-IN= F directory

Also, considering that shared lib is 'sh= arable', so those classes in the shared lib will be loaded once. For th= e logging purpose, I think that there may be issues, as all the deployed ap= plications share the some log4j classes, which is the same that hidden-clas= ses are used to prevent using log4j from server runtimes.

2012/10/16 Zhi Xie <daxiezhi@gma= il.com>
It is very interesting. I'm glad to implement the sharedlib solution. K= eep in contact. :)


2012/10/16 jcyim <jongchoul@gmail.com>
Thank you for your reply.

That's right.
I am talking about that issue.

I *did have* log4j.jar in sharedlib, and I properly declared
<hidden-classes>.
but, result was a fail.

However If I included log4j.jar file into my app's lib. It worked.

In other words, using sharedlib fails, but using app's lib works.
(I guess that the reason of success of second method(to use app's lib) = is
that my log4j library is loaded ahead of geronimo's logging library.) and also I suspect that I can not control classloading of geronimo's lo= gging
library using <hidden-classes> and/or <import-packages>

best regards,
yim



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0= -application-specific-logging-tp3985902p3985917.html
Sent from the Users mailing list archive at Nabble.com.



<= /div>--
Best Regards
= Gary




-- Ivan
--f46d0444e97b3a252004cc2f7bc9--