Any chance you're using Log4j under a commons-logging interface?
I'm forced to use WSAD, which is Eclipse underneath, at work, but I'm not
sure if the solution that worked for me with work for you.  I'm thinking
since WSAD & Eclipse are both IBM (c'mon, it's Friday, no flaming), they both
prefer the IBM-sponsored JDK logging, which takes over your commons-logging.
I found a solution (longer than two syllalbes) here:
http://www-106.ibm.com/developerworks/forums/dw_thread.jsp?forum=266&thread=28061&message=176187&cat=9

Hubert

--- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> Hello all:
> 
> I have always worked with Sun Studio One and making log4j work was a piece
> of cake. Throw the jar in the classpath, put the log4j.properties in
> WEB-INF/classes, restart tomcat and bob's your uncle.
> 
> However the company i work for now uses eclipse and I assumed (wrongly as
> it turns out) that I could integrate log4j easily into this IDE too.
> *Wrong!!*. I have googled till I'm going cross-eyed. One person suggested I
> create a log4j plug-in. Another suggested I create a Log4jInit servlet. But
> I can't help thinking "Come **on**, can it be that involved??!!" 
> 
> So folks, if you've successfully solved this problem, make my day, will ya?
> In words of two syllables or less, please - my brain's fried already..(:(
> 
> Many thanks in advance!
> Geeta
> 
> P.S Btw, I did manage to create a Java **application** (with a main method
> and all) to talk to log4j within eclipse and no, it did not invlove writing
> servlets and plugins and what not. My problems arise when I try to get my
> *Struts app* to recognize log4j. (hey, maybe this makes it on-topic after
> all!! ;))
> 
> P.P.S. Oh yeah, I guess it may help to show you the error I get.  Here it
> is:
> 
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.Digester).
> log4j:WARN Please initialize the log4j system properly.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to