The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory最新处理方法

news/2024/7/4 0:54:00 标签: tomcat, jsp, spring, class, java, file
class="baidu_pl">
class="article_content clearfix">
class="htmledit_views">

 最新方法

org.apache.jasper.JasperException: Unable to compile class for JSP:

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)

。。。。。。。。。。。。。。。。。。。。。。。。。。。


上网搜,发现不少人有这个问题,但都没有解决办法。因为我在工程的lib中添加了很多包(一堆什么Spring 依赖),所以把他们一删JSP就不抛异常了。工程中和class="tags" href="/tags/TOMCAT.html" title=tomcat>tomcat6 lib中重复的包在加载时是先被加载(也就是class="tags" href="/tags/TOMCAT.html" title=tomcat>tomcat6中相同的包没
有被加载),而工程中的包版本要比class="tags" href="/tags/TOMCAT.html" title=tomcat>tomcat6中的低,造成上面的异常。对照着class="tags" href="/tags/TOMCAT.html" title=tomcat>tomcat中包把项目中相同的删掉就OK了

 

其实从项目lib下删是不起中用的网上好都是上面那种删发这样我最先照着做结构依旧

 

 

 

所以要从下面路径中删除  我的是

F:/WorkDB/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/rzb-web/WEB-INF/lib

在你的.metadata下就可以找到了;删后重启class="tags" href="/tags/TOMCAT.html" title=tomcat>tomcat就OK了

 

 

 

 

 

 

 

 

 

 


http://www.niftyadmin.cn/n/1050937.html

相关文章

Spring整合Quartz定时任务详解

Spring整合Quartz定时任务详解 Spring quartz定时任务官方网站 一、概述 用Spring,就是为了简单。 但是我还是要总结下java定时任务实现的几种方式。 1.TimerTask,等于一个线程隔一段时间运行一下。 2.ScheduledExecutorService,线程池版…

如何获取tinyeditor编辑器里面的值

tinyeditor个人感觉适用于基本文本信息的编辑&#xff0c;即学即用。 你创建编辑器的时候&#xff1a; <textarea name"input" id"input" style"width:400px; height:200px"></textarea> var instance new TINY.editor.edit(....);…

C/C++结构体内存对齐的一些思考

在C中&#xff0c;结构体的内存对齐是为了提高访问结构体成员变量的效率和保证硬件的要求。 结构体对齐 C/C C 结构体内存对齐的示例代码C/C结构体内存对齐的原则结合汇编代码分析结构体的内存对齐问题 C 结构体内存对齐的示例代码 #include <iostream>struct Test_Stru…

postgresql 高可用 repmgr 的使用之八 常用的几个命令

stop pgsql $ pg_ctl -D /var/lib/postgresql/9.6/main -m fast stop 或者 $ sudo pg_ctlcluster 9.6 main stopclone standby $ repmgr -h 192.168.56.101 -U repmgr -d repmgr -f /etc/repmgr.conf standby clone --dry-run --verbose$ repmgr -h 192.168.56.101 -U repmgr …

python获取当前文件路径

python获取当前文件路径 学习了&#xff1a;https://www.cnblogs.com/strongYaYa/p/7200357.html https://blog.csdn.net/heatdeath/article/details/78070832 https://www.cnblogs.com/WonderHow/p/4403727.html import osprint(os.getcwd()) # for root, dirs, files in os.w…

mybatis一个方法执行多条sql_解放双手,不写SQL!一个开源 MyBatis 神器!!

什么是通用 Mapper&#xff1f;它是一个可以方便的使用 Mybatis 进行单表的增删改查优秀开源产品。它使用拦截器来实现具体的执行 Sql&#xff0c;完全使用原生的 Mybatis 进行操作。在 Github 上标星 9.6K&#xff01;为什么要用 Mapper&#xff1f;它提供了所有单表的基本增删…

自学笔记

osi是一种七层抽象模型&#xff0c;tcp/ip是民用网络&#xff0c;是osi的一种实现&#xff0c;只有4层。应用层&#xff1a;浏览器运行的层&#xff0c;包括http,ftp……传输层&#xff1a;TCP&#xff0c;UDP。网络层&#xff1a;IP(v4,v6),ICMP……链路层&#xff1a;物理层&…

SpringBoot入门建站全系列(十三)本地缓存的使用(Ehcache和caffeine的使用)

SpringBoot入门建站全系列&#xff08;十三&#xff09;本地缓存的使用(Ehcache和caffeine的使用) 一、概述 本地缓存&#xff0c;就是使用应用内使用本地内存将数据暂缓存储&#xff0c;一般数据库的查询如果不怎么改动&#xff0c;可以用本地缓存暂存。 远程缓存&#xff…