RE: log4j:WARN No appenders could be found for logger (middlegen.Middlegen).

"Ray Tayek" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <000001c4228a$243f5ca0$b4d501cc@STINGRAY>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Deadman, Hal
> Sent: Wednesday, April 14, 2004 4:13 PM
> To: [email protected]
> Subject: RE: [Middlegen-user] log4j:WARN No appenders could 
> be found for logger (middlegen.Middlegen).
> 
> 
> Is log4j.properties or log4j.xml in your classpath?

Duh! No, it was not. I had moved it to top level. Put it in the lib
classpath by adding an <include name="*.properties"/>. Probably not the best
thing to do (anyone know where it should hang out?)

Works like a charm now :)

Thanks to you both for prompt replies.

> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf 
> Of Ray Tayek
> Sent: Wednesday, April 14, 2004 6:58 PM
> To: [email protected]
> Subject: [Middlegen-user] log4j:WARN No appenders could be 
> found for logger (middlegen.Middlegen).
> 
> 
> Hi, newbie here. Trying to hack up the middlegen sample 
> project so that it just does middlegen for hibernate (not 
> hvn2java) and only has the jars that I need. It works fine, 
> reverses and makes the hibername mapping files. Except that its says:
> 
> middlegen:
>         [echo] Class path = U:\projects\mg0\samples
>    [middlegen] log4j:WARN No appenders could be found for 
> logger (middlegen.Middlegen).
>    [middlegen] log4j:WARN Please initialize the log4j system properly.
> 	....
...



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.