启动JBoss出现“java.lang.RuntimeException: java.lang.reflect.InvocationTargetException”解决
2013-01-06 18:53
696 查看
环境
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/5855144http://rani.iteye.com/blog/794360
@Wentasy 博文仅供参考,欢迎大家来访。如有错误之处,希望批评指正。原创博文如需转载请注明出处,谢谢 :) [CSDN博客] |
相关文章推荐
- struts2做项目报错:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 的解决方法
- struts2启动报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- struts 2.3.15做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- 严重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 问题解决
- 运行Struts项目时出现java.lang.reflect.InvocationTargetException异常解决办法
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- 解析Json 出现——java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- 严重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 问题解决
- 运行Struts项目时出现java.lang.reflect.InvocationTargetException异常解决办法
- sqoop 在hbase运行时出现job: java.io.IOException: java.lang.reflect.InvocationTargetException解决办法
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- net.sf.json.JSONException: java.lang.reflect.InvocationTargetException解决方法
- 启动MyEclipse 出现java.lang.RuntimeException: No application id has been found 解决办法
- java.lang.reflect.InvocationTargetException 异常解决方法
- 解决spring+hibernate+struts2的java.lang.reflect.InvocationTargetException-->null异常
- javaWeb项目出现java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException异常的解决
- java.io.IOException: java.lang.reflect.InvocationTargetException 问题的解决
- Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException