Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 27465 invoked from network); 28 Feb 2007 13:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 13:58:09 -0000 Received: (qmail 54058 invoked by uid 500); 28 Feb 2007 13:58:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 54015 invoked by uid 500); 28 Feb 2007 13:58:15 -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 54004 invoked by uid 99); 28 Feb 2007 13:58:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 05:58:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.201.182] (HELO web31702.mail.mud.yahoo.com) (68.142.201.182) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Feb 2007 05:58:03 -0800 Received: (qmail 70964 invoked by uid 60001); 28 Feb 2007 13:57:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=H8Nr3zGRlL7ItZtIM/zXd7ClOmiNIxT6OmMqGZhhXPsXwUoyKNA8AOWBSopCRsv6P2sxIhwMNjHS8t49fx/b71dal16BKymH2wpWEjZs+wsOa2m5OeLzsPDUt8xtzZQzpsWO7khLZX235EI7aiSh/NNpNToEP2ZEG0TpzNgWQHI=; X-YMail-OSG: i0hpkzAVM1k7czL.HDZvTonODu1tgPHsO63_30QySouhRXRTL3B3ctX_hgHMfgnNY6vgVLDhMrtfEUzhIdwqe2eG1F6334M99k1vHDYDGmhNiymeobu0OYugnpx5N5pEtyACYENAJvg- Received: from [24.211.208.98] by web31702.mail.mud.yahoo.com via HTTP; Wed, 28 Feb 2007 05:57:42 PST Date: Wed, 28 Feb 2007 05:57:42 -0800 (PST) From: Anita Kulshreshtha Subject: Re: mx4j logging init To: dev@geronimo.apache.org In-Reply-To: <9A0A619F-3C3A-4248-B026-74402B316243@iq80.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <658143.69558.qm@web31702.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org A related question... Jetty ClassLoaderTest is using code like this: .................................................. Class cls = cl.loadClass("mx4j.MBeanDescription"); ................................................. Can these tests be disabled? The server seems to work fine without mx4j. Thanks Anita --- Dain Sundstrom wrote: > With the exception of the remote deployer, we don't rely on JMX. The > > remote deployer uses JMX remoting to connect to the Geronimo > deployment service. Assuming that works, we should be ok using what > > the vm ships. > > -dain > > On Feb 27, 2007, at 1:27 PM, Jason Dillon wrote: > > > Good point... we should start ripping that stuff out, probably save > > > a wee bit of space in the assembly. > > > > Though... by doing so we are at the mercy of the JVM to provide a > > JMX system that doesn't suck ass (horrible bugs, etc). > > > > --jason > > > > > > On Feb 27, 2007, at 12:51 AM, Dain Sundstrom wrote: > > > >> We don't need mx4j in 2.0 since jmx is in the vm starting with > Java5. > >> > >> -dain > >> > >> On Feb 26, 2007, at 7:02 PM, Jason Dillon wrote: > >> > >>> Anyone know if we can replace these bits in > >>> GeronimoLogging.initialize() > >>> > >>> > >>> try { > >>> Class clazz = Class.forName("mx4j.log.Log"); > >>> Class paramClazz = Class.forName("mx4j.log.Logger"); > >>> Method method = clazz.getDeclaredMethod("redirectTo", new > >>> Class[] {paramClazz}); > >>> paramClazz = Class.forName("mx4j.log.CommonsLogger"); > >>> method.invoke(null, new Object[] {paramClazz.newInstance()}); > >>> } catch (ClassNotFoundException e) { > >>> // MX4J is not present. > >>> } catch (Exception e) { > >>> throw (AssertionError) new AssertionError("Cannot force MX4J > > >>> to use commons logging.").initCause(e); > >>> } > >>> > >>> > >>> With: > >>> > >>> > >>> System.setProperty("mx4j.log.prototype", > "mx4j.log.CommonsLogger"); > >>> > >>> > >>> --jason > >> > > > > ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/