---
title: "The method getJspApplicationContext(ServletContext) is undefined for the type Js"
author: "daoshud1"
date: "2012-04-13T10:41:48Z"
tags: ["JSP", "Java"]
categories: ["编程语言"]
slug: "the-method-getjspapplicationcontext-servletcontext-is-undefined-for-the-type-js"
draft: false
lastmod: "2012-04-13T10:41:48Z"
id: 1485038
url: "https://daoshud1.iteye.com/blog/1485038"
---

```java

The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

```

打开Tomcat 找到工程下的lib 看是否有以下
javax.servlet.jar 和 javax.servlet.jsp.jar 两个包。 去掉就OK了。