title: java.io.FileNotFoundException: [WEB-INF/spring-servlet.xml] cannot be opened because it does not exist
body: <p>In<code>/src/main/java/com/application/myGoogleAppEngine/controller/AddressController.java</code>, I want to use this instructions for using the beans by after : </p>
  
  <pre><code>ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("/WEB-INF/spring-servlet.xml");
  </code></pre>
  
  <p>My <code>spring-servlet.xml</code> file sits in <code>/src/main/webapp/WEB-INF/</code> directory.</p>
  
  <p>When I execute my spring application, I've the following error : </p>
  
  <pre><code>java.io.FileNotFoundException: class path resource [WEB-INF/spring-servlet.xml] cannot be opened because it does not exist
  </code></pre>
  
  <p>In my memories, I know that we can use a function to obtain the current directory of the project but I don't remember. </p>
  
  <p>Otherwise, do you have any solutions ? </p>
  
  <p>Thank you</p>