Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
来源:互联网 发布:淘宝劵 编辑:程序博客网 时间:2024/05/02 04:54
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping Guestbook
利用myeclipse自动添加的struts,spring和hibernate框架,有的jar包重复,所以造成了冲突
,两个不同版本的asm的jar包混在一起导致这种错误。
把重复的删掉就可以了。
1.去掉类路径上的关于Hibernate的3个lib
asm.jar
asm-attrs.jar
cglib-2.1.3.jar
2.加入Spring中的以下4个lib
asm-2.2.2.jar
asm-commons-2.2.2.jar
asm-util-2.2.2.jar
cglib-nodep-2.1_3.jar
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- 错误Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationC
- Bug--Error creating bean with name 'sessionFactory' defined in class path resource [data_context.xml
- Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationCon
- Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocatio
- Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource
- Visual Studio调试多线程应用程序
- printf(&unix["\021%siz\012\0"].....
- oracle 10G jobs运行报错 sys.dbms_ijob sys.dbms_jos
- 域名与IP地址及其映射
- 动态添加控件
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- 【QC开发相关】解决无法创建TDConnection(OTAClient.dll中提供)对象的问题(错误0x800703e6)
- hdu 1025 Constructing Roads In JGShining's Kingdom【即求最长上升子序列】
- JSP内置对象
- 【javaWeb】Struts 2导出excel文件
- 为产品赋予人格 - 情感化设计的组成要素及实践案例
- oracle中的connect by prior ... start with 数据库的递归算法
- glibc ptmalloc中的宏操作
- 截断表 TRUNCATE