老版本的Struts2升级,启动报的错。

org.apache.struts2.dispatcher.FilterDispatcher 是web.xml中对struts2  2.2版本的接入点的类。

在Struts2  2.3版本,应该是 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

在Struts2  2.5版本,应该是 org.apache.struts2.dispatcher.FilterDispatcher

如下:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"id="WebApp_ID" version="3.0"><display-name>Struts 2</display-name><welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list><filter><filter-name>struts2</filter-name><filter-class><!--2.5版本的写法 -->org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping>
</web-app>

java.lang.ClassNotFoundException:org.apache.struts2.dispatcher.FilterDispatcher相关推荐

  1. java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.Struts问题解决

    在eclipse中新建了ssh项目报错:1.java.lang.ClassNotFoundException:org.apache.struts2.dispatcher.ng.filter.Strut ...

  2. Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory

    1.错误叙述性说明 2014-7-12 0:38:57 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplica ...

  3. org.apache.struts2.dispatcher.FilterDispatcher的四个功能

    org.apache.struts2.dispatcher.FilterDispatcher的四个功能 2008-05-24 11:16 1.org.apache.struts2.dispatcher ...

  4. IDEA里运行代码时出现Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger的解决办法(图文详解)...

    问题详情 运行出现log4j的问题 "C:\Program Files\Java\jdk1.8.0_66\bin\java" -Didea.launcher.port=7533 & ...

  5. 错误: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils

    做项目的时候,实现图片异步上传并返回json数据,但是图片上传成功,json数据没有返回,报错:  java.lang.ClassNotFoundException: org.apache.commo ...

  6. java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser

    MyEclipse报错: Warning: Caught exception attempting to use SAX to load a SAX XMLReader Warning: Except ...

  7. 【报错笔记】使用MultipartFile 出现异常:java.lang.ClassNotFoundException: org.apache.commons.fileupload...

    使用MultipartFile出现异常:java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory ...

  8. java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.login_jsp

    背景:SpringBoot的项目配置了对jsp的支持,走控制器就报这个错误.相关配置如下: <!-- JSP BEGIN --><dependency> <groupId ...

  9. java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder

    报错 aused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilderat java.net.URLClassL ...

最新文章

  1. vue学习笔记——路由
  2. Hologres基于TPCH的性能测试介绍
  3. STL中list的使用(理论)
  4. Fiddler之解决https链接返回数据显示乱码问题
  5. php中自动转换、强制转换、其他数据类型和bool转换
  6. linux用户态使用gpio中断方法
  7. 你关注什么,输出什么
  8. 拉普拉斯算子_图机器学习图拉普拉斯算子的离散正则性,141页ppt,Discrete regularity graph Laplacians...
  9. sparksql读取mysql表的两种方式
  10. ip_conntrack 模块的作用
  11. 解决报错(4种情况):0x00007FF614F73B96 处(位于 XXX.exe 中)引发的异常: Microsoft C++ 异常: cv::Exception,位于内存位置 0x000XXX
  12. 关于 K8S 探针(startupProbe、livenessProbe、readinessProbe)的最佳实践
  13. 分享100个好看且实用的PPT模板
  14. 首都师范 博弈论 5 4 4 多人合作博弈问题 Shapley计算之财产分配问题
  15. Eclipse快捷键的设置和使用(大小写快捷键等)
  16. Latex/CTex/WinEdt自动编号小标题序号(条目/编号/描述)
  17. 普罗米修斯prometheus
  18. 系列推荐 |《最强的 VLC 多媒体开发教程》
  19. 【Alist + Teracloud】WebDAV免费畅游互联网个人方案总结,一些支持WebDAV的应用推荐
  20. 数据集-20个免费的数据源/网站

热门文章

  1. hitcon2014_stkof
  2. oracle速度慢排查,oracle整体变慢的排查方法
  3. ES6-ES10--学习笔记
  4. 晶圆键合机和晶圆解键合机
  5. 可调电阻封装图_这谁瞎编的电阻知识?恨就恨没早见过此文
  6. 算法的力量(转李开复)
  7. mpeg2视频解码标准简介
  8. 团队作业(五)-笔记app top5
  9. android qt rssi,蓝牙信号强度RSSI
  10. Tour De Babel