The method getContextPath() from the type HttpServletRequest refers to the missing type
出现这种错误,秩序两步就可以解决 1右击该项目-BuildPath-ConfigureBuildPath,在Libraries选项下,会发现有个出错的jreLibraries,将其Remove掉。2然后右击该项目-BuildPath-AddLibrary,选择JRESystemLibrary,选择WorkspacedefaulrJRE(jdk1.6)(此前JDK已成功安装并配置好),然后Finis