title: Tomcat App says "Unable to configure the logging system. No log.properties was found."
body: <p>I have an embedded tomcat app and whenever I start it up I see this error printed to the console twice:</p>
  
  <pre><code>Unable to configure the logging system.  No log.properties was found.
  </code></pre>
  
  <p>It seems stupid, but I've done some googling and searched stackoverflow and can't seem to find someone experiencing this problem.</p>
  
  <p>My main class Looks roughly like this:</p>
  
  <pre><code>public class AuthServerEntryPoint {
    static {
      org.apache.log4j.PropertyConfigurator.configure("conf/log4j.properties");
    }
  public static void main(String[] args) {
    // ...
  }
  </code></pre>
  
  <p>"conf/log4j.properties" contains a seemingly valid configuration:</p>
  
  <pre><code>log4j.appender.mainAppend=org.apache.log4j.ConsoleAppender
  log4j.appender.mainAppend.layout=org.apache.log4j.PatternLayout
  log4j.appender.mainAppend.layout.ConversionPattern=%d %p [%t] %c -- %m%n 
  
  log4j.appender.fileAppend=org.apache.log4j.FileAppender
  log4j.appender.fileAppend.layout=org.apache.log4j.PatternLayout
  log4j.appender.fileAppend.layout.ConversionPattern=%d %p [%t] %c - %m%n 
  log4j.appender.fileAppend.file=logs/myservice.log
  
  log4j.rootLogger = info, fileAppend
  log4j.logger.com.mycompany.myservice = debug, fileAppend
  </code></pre>
  
  <p>And the logging actually does work - i.e., logs are correctly written to myservice.log.  So what gives?</p>
  
  <p>Thanks!
  -Carl</p>