servletcode.jsp

JSP Error:


Request URI:/demo/cache/servletcode.jsp


Exception:

java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest: method getContextPath()Ljava/lang/String; not found
	at oracle.jsp.util.JspUtil.getContextPath(JspUtil.java:752)
	at oracle.jsp.jwcache.impl.CacheCommonUtil.getContextPath(CacheCommonUtil.java:320)
	at oracle.jsp.jwcache.impl.CacheOCSUtil.genPolicyNameForOCS(CacheOCSUtil.java:86)
	at oracle.jsp.jwcache.impl.CacheOCSUtil.lookupPolicyOCS(CacheOCSUtil.java:100)
	at oracle.jsp.jwcache.impl.CacheCommonUtil.lookupPolicy(CacheCommonUtil.java:216)
	at oracle.jsp.jwcache.CacheClientUtil.lookupPolicy(CacheClientUtil.java:31)
	at _demo._cache._servletcode._jspService(_servletcode.java:54)
	at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
	at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
	at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
	at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
	at oracle.jsp.JspServlet.service(JspServlet.java:148)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
	at org.apache.jserv.JServConnection.processRequest(JServConnection.java:435)
	at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)