java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

sivalabs.in | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    SpringMVC3 Hibernate CRUD Sample Application - SivaLabs

    sivalabs.in | 7 months ago
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

      at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext()
    2. Spring MVC
      FrameworkServlet.initServletBean
      1. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:431)
      2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)
      3. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)
      4. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
      4 frames