SSH中spring和struts2整合遇到的问题,Action class not found
来源:互联网 发布:淘宝新规则2016年9月 编辑:程序博客网 时间:2024/05/16 07:25
我们在对sturts.xml配置文件中的action进行配置时,action指向的class往往是spring配置文件applicationContext.xml中的been名,这时候出现了action class not found的问题。检查action定义正确,仍报错。可能有下列两个原因:
1.未导入struts2-sping-plugin 2.0.1.jar(在struts包中)
struts2-sping-plugin 2.0.1.jar用于将struts.xml配置文件和spring配置文件关联起来。在lib中导入struts2-sping-plugin 2.0.1.jar即可
2.struts.xml没有交与spring管理
在struts.xml中还要加入这么一个bean
<bean type="com.opensymphony.xwork2.ObjectFactory" name="spring" class="org.apache.struts2.spring.StrutsSpringObjectFactory" />
这个bean要放在package的外面
0 0
- SSH中spring和struts2整合遇到的问题,Action class not found
- struts2 和 spring整合时的 Action class ... not found 异常
- SSH框架搭建遇到的问题---Action class [userAction] not found - action
- Struts2与Spring3整合遇到Action not found问题的解决
- SSH:Could not find action or result提及struts2+spring整合中action的生命周期
- 配置struts2遇到的class not found 的问题
- ssh整合报错:Action class [ ] not found
- ssh整合开Unable to load configuration. - action - |Caused by: Action class [login] not found - action -
- Struts2 和spring整合的 Action层托管问题
- SSH整合问题:struts2-spring-plugin自动注入action的属性所产生的问题
- struts2+hibernate+spring整合过程中遇到的问题
- SSH 项目过程中遇到的问题和解决方法汇总 struts2 spring hibernate
- Action class [*.*.*] not found
- SSH整合中遇到的问题整理
- SSH整合后问题 org.hibernate.MappingException: entity class not found
- Struts2:Action not found
- Struts2+Spring 整合成功测试案例--整合过程中遇到的问题及解决方法(一)
- Struts2和Spring整合, Action单例和多例的问题
- mysql连接中一个坑爹的问题记录
- 148. Sort List
- 【数论】洛谷 P1422 小玉家的电费
- 优达学城自动驾驶汽车-Project2 Traffic_Sign_Classifier
- redis的 rdb 和 aof 持久化的区别
- SSH中spring和struts2整合遇到的问题,Action class not found
- 深度学习之Alexnet模型
- python 应用 IPy 计算IP/掩码的网络地址
- JAVA 工厂模式
- VS MSTest 运行在x64位的配置
- java split分割问题
- 一天搞定HTML----标签类型与类型转换05
- JAVA开发之 6-JAVA语言的书写格式
- 理解序列化 Serializable 和 Parcelable