错误:
严重: Exception starting filter struts-cleanup
java.lang.ClassNotFoundException: org.apache.Struts2.dispatcher.ActionContextCleanUp
我的web.xml:
<?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/j2ee" xmlns:javaee="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/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID" version="2.4">
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.Struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
后来移除掉Struts2-cleanup之后运行成功了。
不明白为什么添加struts-cleanup之后会出现这个错误,原来以为是版本的原因,换了一下,还是一样的错误,真的是弄不明白。
分享到:
相关推荐
严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
创建自定义异常 Create Custom Exception1---马克-to-win java视频
创建自定义异常 Create Custom Exception3---马克-to-win java视频
有关struts2下载组件的具体介绍我...<exception-mapping result="client-abort-exception" exception="org.apache.catalina.connector.ClientAbortException"/> <action name="download" class="com.DownloadAction"> ...
exceptionOne-redis-master.zip windows 解压可用的redis压缩包 解压可以直接使用
NULL 博文链接:https://hnzhoujunmei.iteye.com/blog/747132
异常示例(Exception)
第一次做struts2的程序,却遇到了Exception starting filter struts2的问题,追其原因,其中一个很大的原因是其官方网站上下的那几个包不行。于是费劲千辛万苦找到了这几个好使的包!
delphi中调试是出现Debugger Exception Notification
JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。 JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。
Laravel开发-laravel-exception-email-notification 当发现mailable、job queue、emailEventHandler异常时发送电子邮件通知
NULL 博文链接:https://vb2005xu.iteye.com/blog/618326
官方离线安装包,亲测可用
官方离线安装包,亲测可用
资源来自pypi官网。 资源全名:exception_reports-0.2.1-py3-none-any.whl
<exception-mapping result="IOException" exception="java.io.IOException"></exception-mapping> <exception-mapping result="SQLException" exception="java.sql.SQLException"></exception-mapping> </global...
<filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*...
phase3-spring-ecomm-api-exception-handling-03-14-2021:phase3-spring-ecomm-api-exception-handling-03-14-2021
用Exception类捕获所有异常---马克-to-win java视频的介绍