BEA-101165 Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispat
来源:互联网 发布:mac os x 10.9.5原版 编辑:程序博客网 时间:2024/06/05 09:22
最近在写一个struts2 应用,修改struts.xml是,后台报错:
BEA-101165 Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher
struts.xml代码如下:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts><!-- 该属性指定Struts 2应用所需要的国际化资源文件,如果有多份国际化资源文件,则多个资源文件的文件名以英文逗号(,)隔开。--><constant name="struts.custom.i18n.resources" value="globalMessages" /><!-- 指定Web应用的默认编码集,相当于调用HttpServletRequest的setCharacterEncoding方法 --><constant name="struts.i18n.encoding" value="UTF-8" /><!-- 该属性设置是否每次HTTP请求到达时,系统都重新加载资源文件。开发阶段设置true 生产模式设置false --><constant name="struts.i18n.reload" value="true" /><!--该属性设置当struts.xml文件改变后,系统是否自动重新加载该文件。该属性的默认值是false。 开发阶段最好true 生产模式设置false<constant name="struts.configuration.xml.reload" value="true" />--><!--对于某些Java EE服务器,不支持HttpServlet Request调用getParameterMap()方法,此时可以设置该属性值为true来解决该问题。该属性的默认值是false。对于WebLogic、Orion和OC4J服务器,通常应该设置该属性为true。--><constant name="struts.dispatcher.parametersWorkaround " value="true" /><!-- 设置浏览器是否缓存静态内容,默认值为true,开发阶段最好false 生产模式最好设置true--><constant name="struts.serve.static.browserCache " value="false" /><!-- 开发模式下设为true,这样可以打印出更详细的错误信息 生产模式设置false<constant name="struts.devMode" value="true" />--><!-- 如果前面的在获得一个有效的ActionMapper或Uri失败,一个复合的映射器能委托一系列的ActionMapper --><constant name="struts.mapper.composite" value="struts" /><!-- 标识默认的jar包--><constant name="struts.convention.default.parent.package" value="default-package" /> <!-- 指定Struts 2默认的ObjectFactory Bean,该属性默认值是spring --><constant name="struts.objectFactory" value="spring"/><include file="struts-hello.xml"/><include file="struts-json.xml"/> </struts>
代码中,我注释了两个常量,struts.configuration.xml.reload、struts.devMode,重启weblogic,后台未报错。至于为什么这两个常量设置时,后台报错,本人正在研究,后续更新。
- BEA-101165 Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispat
- class not found:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- WARN org.apache.struts2.dispatcher.Dispatcher - Could not find action or result
- web.xml配置ActionContextCleanUp (org.apache.struts2.dispatcher.ActionContextCleanUp)
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
- Could not load class org.apache.struts2.jsf.FacesSetupInterceptor
- Could not load class org.apache.struts2.jsf.FacesSetupInterceptor
- Unsupported major.minor version 51.0(unable to load class org.apache.struts2.dispatcher.filter.Strut
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter和org.apache.struts2.dispatcher.
- Struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter
- Struts2中web.xml配置出错 ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatahcer
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter与org.apache.struts.dispatcher.F
- java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilte
- java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilte
- java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFil
- 怎样在IIS下配置PHP
- 程序员面试题精选100题(12)-从上往下遍历二元树[数据结构]
- Java中sleep()与wait()的区别
- android 电容屏(三):驱动调试之驱动程序分析篇
- 无root权限下安装tmux
- BEA-101165 Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispat
- web中显示图片问题
- 详解Android动画之Interpolator插入器
- Hello World
- LeetCode 之 Balanced Binary Tree
- word2vec
- WPF鼠标划线测距——模仿电子地图测距
- android编译调试选项——dump-module-variables
- GMM 与 KDE 区别与联系