JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 04, 2023, 09:42:25 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: log4j initialization error  (Read 5363 times)

bd

  • Guest
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
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads