whenever you see that message, "Please initialize the log4j system properly." it's because the PropertyConfigurator didn't find a log4j.properties file in the classpath of the ClassLoader (either thread context loader or the loader that loaded the log4j jar - it probably checks both) or you didn't call the BasicConfigurator before using the log4j system. you'll need this file on both client and server side, but once it's loaded (as long as you don't switch to another branch of the ClassLoader tree - i.e., another webapp of the same server) you shouldn't have a problem. is this client or server side? do you have the basic components of a log4j.properties file? this is the bare-bones log4j.properties file - it dumps everything to console:

log4j.rootLogger=DEBUG, CONSOLE
log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern   = %-5p %c %x:%m%n

hope this helps. Alberto Filho wrote:

Ok, but now, the error message is another...

java org.apache.axis.wsdl.WSDL2Java http://localhost:8080/axis/Hello.jws?wsdl

log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.



???


Reply via email to