You need to make sure the log4j.properties file is in the classpath of
the client. There is one that ships with 1.2rc3 in the lib directory.
Contents as follows:

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE

# Set the enterprise logger category to FATAL and its only appender to
CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=INFO
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x -
%m%n


You will probably run into other output complaining about missing
classes which can be solved by getting the java activation framework and
javamail from the Sun site and making sure those too are in your client
classpath

http://java.sun.com/products/javabeans/glasgow/jaf.html 

http://java.sun.com/products/javamail/downloads/index.

Cam.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, 29 April 2005 3:52 AM
To: [email protected]
Subject: Axis Log4j initialization failure...

Back in February someone reported a problem with the Axis 1.2 always
reporting the following. 

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

This occurs when trying to execute any client SOAP application.
There is no follow on e-mail thread and I need to solve the same
problem.

Does anyone have an idea what I need to do to get this to stop?

I am running Java 1.5 with Axis 1.2 RC3.  Not that the server side
should
matter, but I'm running Tomcat 5.5.

  Cliff


Reply via email to