On Sat, 2004-07-24 at 22:03, Srivastava, Abhinav wrote:
> Can you help me with this - 
> 
> [webdoclet] log4j:WARN No appenders could be found for logger
> (xdoclet.util.Translator.getString).
> 
> [webdoclet] log4j:WARN Please initialize the log4j system properly.
> 
> Why am I getting this? Why is the appender needed during compilation
> ..??

XDoclet isn't compilation, it's (source) code generation.  The
compilation comes later.

As to why it's complaining about the appender, we use log4j for logging
(debug trace code mostly) within XDoclet.  The warning that's being
printed is log4j's standard response if it hasn't been configured
correctly (i.e. it believes no appenders have been assigned to any
categories) before a log event is received.  The usual reason for this
is it can't find log4j.properties (or the equivalent XML configuration
file) on the classpath.  However, we include such a file in the core
xdoclet jar, so I don't know why it isn't able to find it in your case. 
What version of XDoclet are you using?  Is it one of the binary
distributions, or did you build it yourself?  If you look inside
xdoclet-1.2.1.jar (or the equivalent for your version), is there a
log4j.properties file in there?  How are you running it (Ant task or the
Maven plugin)?  Are you running it within an IDE or at the command line?


Andrew.

> 
> 
>  
> Thnaks,
> Abhinav
>  


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to