启动JBoss出现“java.lang.RuntimeException: java.lang.reflect.InvocationTargetException”解决
来源:互联网 发布:mac远程连接云服务器 编辑:程序博客网 时间:2024/06/02 19:41
环境
JBoss 6.0 + MyEclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0
问题
启动JBoss出现如下异常:Dispatcher initialization failedjava.lang.RuntimeException: java.lang.reflect.InvocationTargetException
解决
核对Struts版本和web.xml过滤器配置是否一致。
struts2版本是2.1以前
web.xml过滤器配置
<web-app> <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过滤器配置配置
<web-app> <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>
参考资料
http://blog.csdn.net/helifengwell/article/details/5855144
http://rani.iteye.com/blog/794360
@Wentasy 博文仅供参考,欢迎大家来访。如有错误之处,希望批评指正。原创博文如需转载请注明出处,谢谢 :) [CSDN博客]
- 启动JBoss出现“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
- struts2报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException错
- 解析Json 出现——java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- Visual Studio 调试时代码错位问题
- How to install JDK on Linux
- Hadoop学习总结Map-Reduce的过程解析
- 通过Windows API来了解多字节与宽字符
- 设计模式(十二)----- 代理模式(Proxy)----(JAVA版)
- 启动JBoss出现“java.lang.RuntimeException: java.lang.reflect.InvocationTargetException”解决
- Android eclipse中程序调试
- 小游戏系列算法之二贪吃蛇算法原理
- spring @Transactional相关说明
- Windows下OpenGL轻松加载BMP, GIF, JPEG, PNG, and TIFF图片
- Android SurfaceView Double Buffer
- 【Struts2】Annotation使用小记
- microblogs
- Android中如何查看内存