com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance
来源:互联网 发布:电脑怎么使用手机网络 编辑:程序博客网 时间:2024/06/10 08:52
Struts2启动异常
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
Caused by: java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:209)
原因两个:
1.lib中多导入包的原因:去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。有时也可能是其它包冲突的原因。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
- com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance
- at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance...
- com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance
- Struts配置异常at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory
- tomcat6启动出现的错误 Exception starting filter struts com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
- com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
- Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
- Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
- Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
- Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
- Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
- Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
- 黑马程序员学习笔记七——多线程
- NSTimer的用法
- SQL注入式攻击
- JSP 引擎工作原理
- uva 113 - Power of Cryptography
- com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance
- .net c# 用代码来添加断点并且在Visual Studio输出窗口中显示自定义信息
- 完整详尽的二叉排序树性质及源码和注释 C语言 可直接运行
- android canvas的清空 !!!!!!头痛,,,,,,,哎
- ScrollView嵌套ListView时ListView的数据显示不全的解决方案
- JAVA与JSON的使用方式及转换示例代码
- Iphone幻灯片效果+背景音乐
- eclipse 的 Red5 插件安装简介
- ruby on rails 与grails