facebook

Log4j messages when using xFire

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #258138 Reply

    Mork
    Participant

    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

    #258312

    Riyad Kalla
    Member

    Mork,
    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.

    #258372

    Mork
    Participant

    I’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%n

    #258387

    Riyad Kalla
    Member

    Yea I think it wants you to add one for org.codehaus.xfire.transport.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Log4j messages when using xFire

You must be logged in to post in the forum log in