title: What are the possible reasons behind "log4j: Error Could not find value for key log4j.appender.SQL_APPENDER"
body: <p>I am wondering why I have this error when deploying my web application.</p>
  
  <pre><code>log4j: Error Could not find value for key log4j.appender.SQL_APPENDER
  </code></pre>
  
  <p>Here is my <code>log4j.properties</code> file.</p>
  
  <pre><code>log4j.rootLogger=error, stdout
  
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  
  # Print the date in ISO 8601 format
  log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
  
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.R.File=application.log
  
  log4j.appender.R.MaxFileSize=100KB
  # Keep one backup file
  log4j.appender.R.MaxBackupIndex=1
  
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
  
  log4j.logger.org.hibernate.SQL=DEBUG, SQL_APPENDER
  log4j.additivity.org.hibernate.SQL=false
  </code></pre>
  
  <p>Do I have to do some configuration in the server side? I am running my application on a Tomcat 7 server. I added this dependency to the <code>pom.xml</code> file:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.16&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>