When I press on Debbug Server I get the following error:
log4j:WARN No appenders could be found for logger (org.codehaus.xfire.transport.http.XFireConfigurableServlet).
log4j:WARN Please initialize the log4j system properly.
What I need to do to resolve this problem?
MyEclilpse 5.0.1 GA
Weblogic 8.1 SP4
In a web service, that warning is given every time the web service is hit, even if I’ve implemented logging of my own for the web service. If the web service is hit a lot, that really clutters up the console. So, is there a way to disable that warning?
You can either get rid of log4j, or place a log4j.properties file (as explained in the link above) that defines a single appender of some kind… I’m not sure if log4j offers “null” appenders to just eat the output. Or just set the logging sufficiently high for the component you don’t want to see the notice from.
I could easily set the logger level to “OFF” but I’ve tried placing a log4j.properties file at various locations throughout my project/deployment, and it doesn’t seem to be found by whatever is looking for it.
Either way, that’s kind of a kludge, and I’d prefer to just drop log4j altogether, but it appears to be tightly coupled to your “XFire 1.1 Core Libraries”, which I appear to need for my web service. It shouldn’t be the case that log4j is required if I want a web service; is there any way this could be looked into for future releases, or can you discuss how to configure XFire such that it doesn’t bring log4j along for the ride?
Unfortunately this is just the case with a lot of frameworks today, if they are written against a logging framework there is nothing you can do, using an OFF appender isn’t a kludge, it’s just an instruction for the logging library that XFire uses.
If XFire is actually using commons-logging and not log4j explicitly, I think you can redirect the output to a JDK logger, I just don’t know offhand how to do this.
Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Web Services’ is closed to new topics and replies.