adequate
adequate
adequate
adequate
 

JPPF
 Home   About   Download   Documentation   Forums 
May 21, 2013, 02:10:42 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: Registered users, your contribution is requested! Please participate in our JDK support poll
New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: log4j initialization error  (Read 3684 times)

bd

  • JPPF Knight
  • **
  • Posts: 20
log4j initialization error
« on: December 14, 2006, 05:28:46 PM »

I am unable to get log4j to work.  I am getting the

Quote

log4j:WARN No appenders could be found for logger (org.jppf.utils.SerializationHelperImpl).
log4j:WARN Please initialize the log4j system properly.


message. I assume this means that log4j is not finding the configuration file.  I have included the config file in the client invocation, e.g.

Quote

java ... -Dlog4j.configuration=/home/jppf/client/config/log4j-client.properties


Note that I've used a fully qualified path (to be on the safe side).  

Could this message indicate an error in the log4j config file?  I've tried several versions of this file, but all yield the same error. E.g using the client config file from jppf.../demo/config:

Quote

### direct log messages to stdout ###
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### direct messages to file jppf-client.log ###
log4j.appender.JPPF=org.apache.log4j.FileAppender
log4j.appender.JPPF.File=jppf-client.log
log4j.appender.JPPF.Append=false
log4j.appender.JPPF.layout=org.apache.log4j.PatternLayout
#log4j.appender.JPPF.layout.ConversionPattern=%d{ABSOLUTE} [%-5p][%c.%M(%L)]: %m\n
log4j.appender.JPPF.layout.ConversionPattern=%d [%-5p][%c.%M(%L)]: %m\n

### set log levels - for more verbose logging change 'info' to 'debug' ###

log4j.rootLogger=INFO, JPPF
#log4j.rootLogger=DEBUG, JPPF


yields this error message.

thanks
Logged
Pages: [1]   Go Up
 
Support This Project Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Powered by Parallel Matters Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads