title: Log4j java.io.FileNotFoundException in web.xml
body: <p>My application folder structure</p>
  
  <p><img src="https://i.stack.imgur.com/yG64C.png" alt="enter image description here"></p>
  
  <p>The Stack trace</p>
  
  <p>java.io.FileNotFoundException: D:\Eclipse Workspace\Maven_Projects.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\Spring_Webapp\classpath\log4j.xml (The system cannot find the path specified)</p>
  
  <p>My web.xml</p>
  
  <pre><code>     &lt;context-param&gt;
      &lt;param-name&gt;log4jConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;classpath/log4j.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>but my log4j.xml file is in the class path  but still why I am getting that error message? 
  Is there anything wrong I am doing?</p>