title: log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException:
body: <p>I'm getting the below error while compiling the application</p>
  
  <pre><code>log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException:\gel\ms\ex\ms.log (The system cannot find the path specified)
  </code></pre>
  
  <p>Below is my log4j config file:</p>
  
  <pre><code>#root log level
  log4j.rootCategory=debug, R
  log4j.logger.java.sql=DEBUG
  log4j.logger.com.ibatis=DEBUG
  
  # First type of log, output to file
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.R.File=/gel/ms/ex/ms.log
  log4j.appender.R.MaxFileSize=5000KB
  log4j.appender.R.MaxBackupIndex=3
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%d [%40c] %5p - %m%n
  </code></pre>
  
  <p>And my project folder hierachy</p>
  
  <p>MS(Project Name)</p>
  
  <ol>
  <li><p>Java Resource</p></li>
  <li><p>WebContext</p>
  
  <p>2.a -META-INF</p>
  
  <p>2.b -WEB-INF</p></li>
  </ol>
  
  <p>Please advise.
  Thanks</p>