Axis 1.x: clearing up the log4j error message

B

bruce_phipps

I'm a newbie learning Axis1.x ( I know there is an Axis2, but our
developers at work are still using 1.x).

Things are going well. I have worked through most of the basic samples
OK. But I get a recurring log4j error, which is not fatal but I would
like to fix it .

bash-3.00$ java org.apache.axis.wsdl.WSDL2Java
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
.................

How can I clear this up?

Thanks
Bruce
 
J

jagonzal

I'm a newbie learning Axis1.x ( I know there is an Axis2, but our
developers at work are still using 1.x).

Things are going well. I have worked through most of the basic samples
OK. But I get a recurring log4j error, which is not fatal but I would
like to fix it .

bash-3.00$ java org.apache.axis.wsdl.WSDL2Java
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
................

How can I clear this up?

You need to provide a log4j configuration file.

More info here: http://logging.apache.org/
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Things are going well. I have worked through most of the basic samples
OK. But I get a recurring log4j error, which is not fatal but I would
like to fix it .

bash-3.00$ java org.apache.axis.wsdl.WSDL2Java
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
................

How can I clear this up?

bash-3.00$ java -Dlog4j.configuration=file:log4j.properties
org.apache.axis.wsdl.WSDL2Java

where log4j.properties contain:

log4j.rootLogger=INFO,Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.SimpleLayout

Arne

PS: Why not use the ant task for this ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top