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

An error occurred at line: 23 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

Stacktrace:
        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

jsp相关的jar包冲突了,我的是删除了pom.xml里面的jsp-api配置就正常了。
时间: 2025-01-06 09:30:27

The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory的相关文章

报错:An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 加入Myeclipse自带的java EE 6 library即可解决:

The method getJspApplicationContext(ServletContext

The method getJspApplicationContext(ServletContext) is undefined for the typ 搜索了半天,原来是类加载机制的问题,在tomcat的conf下的context.xml里面加上一句 <Loader delegate="true" /> 原因很简单,就是加载先后的问题,一般没什么特殊原因这个配置还是要写的 具体就是: 首先,你需要了解一下JVM的Classloader机制(详细请自行google之).简而

android-The method findViewById(int) is undefined for the type ContactMainFragment报错

@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); mTitleNameView = (TextView) findViewById(R.id.ivTitleName); mTitleNameView.setVisibility(View.VISIBLE); mTitleNameView.setText(

Tomcat6服务端工程部署Tomcat8遇到的 “The method getDispatcherType() is undefined for the type HttpServletRequest” 问题

一个安卓服务端程序起初部署在Tomcat6.0当中,但是当我用Tomcat8.0部署时,出现了一个错误: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [52] in the generated java file: [D:\apache-tomcat-8.0.15\work\Catalina\localhost\allRunServer\org\apa

The method getTextContent() is undefined for the type Node

The method getTextContent() is undefined for the type Node eclipse 中 如果加入了 其他了xfire 等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The method getTextContent() is undefined for the type Node 提示,解决方法如下: project-->properties->java build path-->

The method getTextContent() is undefined for the type Element

使用org.w3c.dom解析XML,有时可能会报错The method getTextContent() is undefined for the type Element/Node,这种情况可能是加入了其他的XML解析jar包. 解决方法如下: 将Project->Properties->Java Build Path->Order and Export->JRE System Library移动到顶部(Top)

The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)

配置项目,从tomcat低版本,放到tomcat8时,正常的项目居然报错了: The method getDispatcherType() is undefined for the type HttpServletRequest 从网上查资料,找可能出现这个问题的因素: 1可能是环境变量,检查了没问题 2有人说jar包冲突 对于servlet-api.jar这个包,原来工程中有,在旧的tomcat版本中,如果不加,会出问题,新的版本中加了会有问题,删除这个包,重启,ok http://blog.

The method getDispatcherType() is undefined for the type HttpServletRequest

web项目访问时就报错,新建的一个jsp文件里面没有任何的内容也报错,错误:The method getDispatcherType() is undefined for the type HttpServletRequest 严重: Servlet.service() for servlet [jsp] in context with path [/studentManage] threw exception [Unable to compile class for JSP: An error

日常问题记录--访问JSP文件时The method getDispatcherType() is undefined for the type HttpServletRequest

问题现象: 访问任一jsp(即使是空白文件)文件报The method getDispatcherType() is undefined for the type HttpServletRequest错误. 定位: 根据错误提示,查询到getDispatcher位于servlet-api.jar包中. 反编译tomcat/webapp/proj/lib中的servelt-api.jar,发现确实没有这个方法: 问题解决: 清理这个包,删除之,并升级到最新的servelt-api包.解决: