我的漫漫程序之旅

专注于JavaWeb开发
随笔 - 39, 文章 - 310, 评论 - 411, 引用 - 0
数据加载中……

Struts2+Spring2+Hibernate3整合的SessionFactory异常解决办法

昨天在整合的时候出现了这个异常.
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 
'sessionFactory' defined in file [E:\program\Tomcat 6.0\webapps\car\WEB-INF\classes\spring\applicationContext.xml]: Invocation of init method failed;
在google上找了半天,也没找到解决办法.
今天终于解决了,是jar包冲突的问题.

删掉asm1.2.jar,删掉这个带版本号的就没问题了.
这个文件有两个一个不带版本号,保留那个不带版本号的就可以了.

发现在出异常晕,最好先把异常仔细的读懂,这样问题才容易解决.
呵呵.


posted on 2007-11-29 19:43 々上善若水々 阅读(1819) 评论(0)  编辑  收藏 所属分类: SSH整合系列


只有注册用户登录后才能发表评论。


网站导航: