title: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation
body: <p>I am getting following  error on console  when I run the server:</p>
  
  <pre><code>Error creating bean with name  
  org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMa
  pping#0': Invocation of init method failed; nested exception is 
  java.lang.NoSuchMethodError:    
  org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation
  (Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
  </code></pre>
  
  <p>And 404 error on webpage. I have checked the url and resource is existing.</p>
  
  <p>Here are my xml's :</p>
  
  <p><strong>spring-servlet.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans     
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context 
      http://www.springframework.org/schema/context/spring-context.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
  &lt;context:component-scan base-package="com.abhishek"&gt;&lt;/context:component-scan&gt;
  
  &lt;mvc:annotation-driven&gt;&lt;/mvc:annotation-driven&gt;
  
  &lt;bean id="" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/views/"&gt;&lt;/property&gt;
      &lt;property name="suffix" value=".jsp"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  
  &lt;bean id="myDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /&gt;
      &lt;property name="url" value="jdbc:oracle:thin:@localhost:1521:XE"&gt;&lt;/property&gt;
      &lt;property name="username" value="system"&gt;&lt;/property&gt;
      &lt;property name="password" value="pass"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="myJDBC" class="org.springframework.jdbc.core.JdbcTemplate"&gt;
      &lt;property name="dataSource" ref="myDataSource"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://java.sun.com/xml/ns/javaee"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee     http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5"&gt;
    &lt;display-name&gt;EmployeeDetails&lt;/display-name&gt;
    &lt;servlet&gt;
        &lt;servlet-name&gt;employeermvc&lt;/servlet-name&gt;
        &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
     &lt;/servlet&gt;
  
     &lt;servlet-mapping&gt;
         &lt;servlet-name&gt;employeermvc&lt;/servlet-name&gt;
         &lt;url-pattern&gt;/&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;
  
     &lt;listener&gt;
         &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
     &lt;/listener&gt;
  
     &lt;context-param&gt;
         &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
         &lt;param-value&gt;/WEB-INF/spring-servlet.xml&lt;/param-value&gt;
     &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>MyController class</strong></p>
  
  <pre><code>package com.abhishek.controller;
  
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.ModelMap;
  import org.springframework.web.bind.annotation.ModelAttribute;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  import com.abhishek.Dao.EmployeeDao;
  import com.abhishek.bean.Employee;
  
  @Controller
  public class MyController {
  
      @Autowired
      private EmployeeDao dao;
  
      @RequestMapping("/")
      public String newEmployee(ModelMap model) {
          Employee employee = new Employee();
          model.addAttribute("employee", employee);
          return "create";
      }
  
      @RequestMapping(value = "/save", method = RequestMethod.POST)
      public String insertEmployee(@ModelAttribute("employee") Employee employee) {
  
          dao.insert(employee);
          return "inserted";
  
      }
  
  }
  </code></pre>
  
  <p><strong>DAoImpl :</strong></p>
  
  <pre><code>package com.abhishek.Dao;
  
  import java.util.List;
  
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.jdbc.core.JdbcTemplate;
  import org.springframework.stereotype.Component;
  
  import com.abhishek.bean.Employee;
  
  @Component
  public class EmployeeDaoImpl implements EmployeeDao {
  
      @Autowired
      private JdbcTemplate jdbcTemplate;
  
      public EmployeeDaoImpl(){
  
      }
  
      public EmployeeDaoImpl(JdbcTemplate jdbcTemplate) {
         super();
         this.jdbcTemplate = jdbcTemplate;
      }
  
      @Override
          public void insert(Employee emp) {
          String sql="insert into employee(e_id,name,desig,deptt,basic) values(?,?,?,?,?)";
         jdbcTemplate.update(sql, emp.getEid(),emp.getName(),emp.getDesg(),emp.getDept(),emp.getBasic());
         System.out.println("Record Inserted!!!");
     }
  }
  </code></pre>