title: Getting FileNotFoundException in Spring
body: <p>I want to create bean using BeanFactory, but I am getting an exeception: <code>java.io.FileNotFoundException: \\WEB-INF\businesscaliber-servlet.xml</code>.</p>
  
  <pre><code>Resource res = new FileSystemResource("//WEB-INF//businesscaliber-servlet.xml");
  BeanFactory factory = new XmlBeanFactory(res);
  if (factory != null &amp;&amp; beanId != null) {
      obj = factory.getBean(beanId);
  }
  </code></pre>
  
  <p>he its working using this</p>
  
  <p>ApplicationContext ctx = new FileSystemXmlApplicationContext("classpath*:/WEB-INF/businesscaliber-servlet.xml");</p>