struts2报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException错
来源:互联网 发布:av帝国最新域名网址 编辑:程序博客网 时间:2024/05/21 03:26
严重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 问题解决
1、核对lib包
commons-fileupload-1.2.1.jar,
commons-io-1.3.2.jar
commons-logging-1.0.4.jar
freemarker-2.3.16.jar
ognl-3.0.jar
struts2-core-2.2.1.jar
xwork-core-2.2.1.jar)
注意2.1以前是没有commons-fileupload-1.2.1.jar,
2、如果struts2版本是2.1以前
web.xml配置过滤器的时候应该是这样:
- <filter>
- <filter-name>struts2</filter-name>
- <filter-class>org.apache.struts2.dispatcher.FilterDispatcher
- </filter-class>
- </filter>
- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- </web-app>
如果struts2 版本是2.1以上
web.xml配置
- <filter>
- <filter-name>struts2</filter-name>
- <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- </filter-class>
- </filter>
- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- </web-app>
3、
在使用struts-2.2.1时,需要引入javassist-3.7.ga.jar,而这个在struts-2.2.1\lib下是没有的,需要在struts-2.2.1\apps\struts2-blank-2.2.1.war下的lib中找。
- struts2报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException错
- struts2启动报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- struts2做项目报错:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 的解决方法
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- MapReduce 本地执行hadoop程序 报错 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- tomcat 报错 java.lang.reflect.InvocationTargetException
- Struts2框架入门案例时的异常——java.lang.RuntimeException- java.lang.reflect.InvocationTargetException
- scala的类
- Android 中 PopupWindow 响应返回键并关闭的问题
- JSP页面 控制控件显示的JS操作
- 篇对xici.net 西祠胡同自动发帖的总结
- 从MVC框架看MVC架构的设计
- struts2报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException错
- Discuz! X搬家说明——网站如何更换主机
- ARM中的RO、RW和ZI DATA说明
- java虚拟机学习笔记——java class文件的内容(第六章)
- 从几幅架构图中偷得半点海量数据处理经验
- 深入理解 Android 的 IPC 机制--------Binder
- java类的装入
- fedora下Kscope安装 .
- [Mac OS X] 从应用程序访问、控制硬件