commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Westbom <swest...@yahoo.com>
Subject RE: beanutils, too much logging
Date Thu, 10 Apr 2003 21:18:24 GMT
The class doing the logging is going to have its classloaders namespace and the
application's context if the log4j.jar is in the application's lib directory.  

The applications classloader only delegates up if it cannot load a class from
the application classloader's namespace.
 
--- Darrel Riekhof <driekhof@carpenters.org> wrote:
> Are you sure?  JBoss and Tomcat are running in the same JVM so since JBoss's
> classloader would have already picked up log4j settings, then I though
> Tomcat would pick those up instead of reloading.
> 
> Darrel
> 
> -----Original Message-----
> From: Stephen Westbom [mailto:swestbom@yahoo.com]
> Sent: Thursday, April 10, 2003 1:09 PM
> To: Jakarta Commons Users List
> Subject: Re: beanutils, too much logging
> 
> 
> If this is in your servlet layer Tomcat will load from the application
> classloader first before deferring.
> 
> 
> --- Darrel Riekhof <driekhof@carpenters.org> wrote:
> > I'm running a struts 1.1 application on jboss 3.0.6 / tomcat 4.1.18.
> We're
> > using BeanUtils to automatically go back and forth between struts forms
> and
> > middleware view classes.  Everytime I do this, beanutils spits out a ton
> of
> > messages to the jboss server console that look like this:
> >
> > 12:37:56, 115 INFO  [STDOUT] 1557513 [Thread-9] DEBUG
> > org.apache.commons.beanutils.BeanUtils  -   setProperty(foo1=bar1
> > foo2=bar2
> > foo3=bar3
> > <etc>)
> >
> > JBoss is using log4j.  I'm pretty sure it picks up its settings from
> JBoss's
> > server/default/conf/log4j.xml, and that I wouldn't be able to define my
> own
> > webapps log4j.properties or xml file because JBoss will load this one
> first.
> > So, I could either change JBoss's log4j.xml or do runtime configuration
> > using the log4j configurator api.  Assuming this is correct, how would I
> > configure it to filter out all the beanutil logging and still keep getting
> > all the other messages?
> >
> > Also, in the sample log entry above, why does it say that its INFO level
> and
> > DEBUG level?  Are beanutil log messages getting nested inside jboss's?
> >
> > thx, Darrel
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

Mime
View raw message