struts2.1.8+spring2.5.6+hibernate3.2框架搭建错误
来源:互联网 发布:网络购物合同纠纷管辖 编辑:程序博客网 时间:2024/05/20 17:59
1.java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='actionPackages'] in public void org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).
at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
。。。。。。。
出现此错误的原因:你添加了struts2-codebehind-plugin包,去掉就OK了
2.严重: Actual exception
Could not load class org.apache.struts2.jsf.FacesSetupInterceptor. Perhaps it exists but certain dependencies are not available? - interceptor - jar:file:/D:/ghl/apache-tomcat-6.0.20/wtpwebapps/SS/WEB-INF/lib/struts2-jsf-plugin-2.1.8.1.jar!/struts-plugin.xml:35:97
at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:202)
解决:
删除:struts2-jsf-plugin-2.1.8.1.jar
3.严重: Actual exception
Could not load class org.apache.struts2.portlet.interceptor.PortletAwareInterceptor. Perhaps it exists but certain dependencies are not available? - interceptor - jar:file:/D:/ghl/apache-tomcat-6.0.20/wtpwebapps/SS/WEB-INF/lib/struts2-portlet-plugin-2.1.8.1.jar!/struts-plugin.xml:48:114
at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:202)
解决
删除:struts2-portlet-plugin-2.1.8.1.jar
4.asm包的冲突,去掉asm2.2.3(如果去掉asm的话,还会显示出错)。
5.osgi包,这一点我不太懂,搭建框架时,他们会一直报错,后来将其全部删除(3个),ok。
4.在使用form表单时,如果用action=*.action;会报404,去掉".action",ok!这一点恰好与2.0相反。
6.一个常见的hibernate错误:
org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session
出错原因:我在关联的双方都设置了cascade,所以出现了这个错误,汗。。。。
去掉<many-to-one>属性中的cascade属性,ok!
- struts2.1.8+spring2.5.6+hibernate3.2框架搭建错误
- Struts2.0.14+spring2.5+hibernate3.2 框架 搭建
- 用Eclipse来搭建Struts2 + Spring2.5 + Hibernate3.2 框架。
- struts2.1+spring2.5+hibernate3框架搭建时出现的错误及解决办法
- MyEclipse搭建SSH(Struts2+Spring2+Hibernate3)框架项目教程
- ssh框架搭建Struts2.06+spring2.5+hibernate3.2整合实例代码教程步骤
- SSH框架搭建Struts2.06+spring2.5+hibernate3.2整合实例代码教程步骤
- ssh框架搭建Struts2.06+spring2.5+hibernate3.2整合实例代码教程步骤
- struts2.1.8.1 + spring2.5.6 + Hibernate3.5.5
- struts2.1.8 + spring2.5.6 + hibernate3.3.2
- struts2 +hibernate3.2+spring2.0
- 搭建ssh2(struts2.1.8,spring2.5.6,hibernate3)需要用到的所有jar包的名字
- Struts1.2+spring2.0+hibernate3.3 搭建SSH框架
- Struts2+Spring2.5+Hibernate3搭建过程
- struts2.1.8+spring2.5+hibernate3.2+ext3.0框架整合笔记
- struts2.1.8+spring2.5+hibernate3.2+ext3.0框架整合笔记
- eclipse环境搭建ssh(Struts2+Spring2.5+Hibernate3)框架小谈(上)
- eclipse环境搭建ssh(Struts2+Spring2.5+Hibernate3)框架小谈(下)
- mysql查询更新时的锁表机制分析
- S4实现机理介绍
- Windows CE的目录组织
- Height Round
- linux 创建 svn 库
- struts2.1.8+spring2.5.6+hibernate3.2框架搭建错误
- CentOS下安装AMP
- 迁移服务器EE网站--迁移说明步骤
- mysql 连接问题
- find命令技巧
- SCVNGR游戏开发“三十六计”
- 以此为起点
- Mysql query select case when true insert
- 海量空间数据库实施策略---矢量数据7