- This topic has 3 replies, 2 voices, and was last updated 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
I went through the Web Services tutorial with xFire I found on the MyEclipse site.
The only thing I can’t seem to fix is that when I run the Web Service from the stub client program, I get the lines below:
———————————————————-
log4j:WARN No appenders could be found for logger (org.codehaus.xfire.transport.DefaultTransportManager).
log4j:WARN Please initialize the log4j system properly.
———————————————————-I tried putting an old log4j.properites file in various locations in Tomcat, but I kept getting these strings as the Web Service ran.
Thanks in advance.
— M
September 10, 2006 at 11:13 am #258312
Riyad KallaMemberMork,
You normally want to put that log4j.properties file in the root of the /src tree for the app that is running, so it gets compiled out to the root of the output dir for that program and log4j easily finds it in the classpath and loads it. When you place it directly into the appserver libs dirs and such, I’m not sure the classloader for yourindividual app can find it as readily.September 11, 2006 at 5:58 am #258372I’ve tried putting the log4j.properties file just about everywhere, but keep getting these messages:
log4j:WARN No appenders could be found for logger (org.codehaus.xfire.transport.DefaultTransportManager).
log4j:WARN Please initialize the log4j system properly.Maybe I don’t have the “right” log4j.properites file? Mine has the following contents:
# 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%nSeptember 11, 2006 at 10:40 am #258387
Riyad KallaMemberYea I think it wants you to add one for org.codehaus.xfire.transport.
-
AuthorPosts