title: getting error file not found in spring
body: <p><img src="https://i.stack.imgur.com/wxyDG.png" alt="enter image description here"><img src="https://i.stack.imgur.com/wxyDG.png" alt="enter image description here">I am making a simple program in spring getting this error .</p>
  
  <pre><code>----
  log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
  log4j:WARN Please initialize the log4j system properly.
  Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentbean' defined in class path resource [META-INF/test.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'name' of bean class [test]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
      at test.main(test.java:12)
  Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'name' of bean class [test]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1024)
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:900)
      at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
      at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
      ... 13 more
  </code></pre>
  
  <p>i take help of this link .
  <a href="http://www.javatpoint.com/steps-to-create-spring-application" rel="nofollow noreferrer">http://www.javatpoint.com/steps-to-create-spring-application</a>
  I do the following steps</p>
  
  <p>create a xml in this folder WEB-INF test.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;  
  &lt;beans  
      xmlns="http://www.springframework.org/schema/beans"  
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
      xmlns:p="http://www.springframework.org/schema/p"  
      xsi:schemaLocation="http://www.springframework.org/schema/beans  
                 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;  
  
  &lt;bean id="studentbean" class="test"&gt;  
  &lt;property name="name" value="Vimal Jaiswal"&gt;&lt;/property&gt;  
  &lt;/bean&gt;  
  
  &lt;/beans&gt;  
  
  
  public class test {
  public static void main(String[] args) {
      System.out.println("----");
      ApplicationContext applicationContext = new ClassPathXmlApplicationContext("META-INF/test.xml");
  ;   
      //BeanFactory factory=new XmlBeanFactory(appContext);  
  
      Student student=(Student)applicationContext.getBean("studentbean");  
      student.displayInfo(); 
  }
  }
  </code></pre>