Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j errors when running JUnit test

 
Vit Siv
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
log4j:WARN No appenders could be found for logger
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
log4j:ERROR Could not read configuration file [/someDir/log4j.properties].
java.io.FileNotFoundException: /someDir/log4j.properties (No such file or directory)

The file is def there and has this in it:



Anything wrong with this?

Some other warnings there:
SEVERE: /someDir/server.properties is not a valid file location.
SLF4J: Class path contains multiple SLF4J bindings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic