Error creating bean with name 'sessionFactory' defined in ServletContext resourc

yczyh364 2011-07-23 03:31:39
在做SSH框架的时候发布程序出现这样的错误提示框,已经按照网上很多人说的对ASM的几个包进行删除整理还是出现这样的问题,现在我将错误信息贴出来让大家帮我想想办法。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
Caused by:
java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
...全文
379 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Codefans_Fan 2011-08-07
  • 打赏
  • 举报
回复
我也出现这样问题了、、
heting1024 2011-07-23
  • 打赏
  • 举报
回复
试着baidu找找这个类org.hibernate.cfg.Configuration所在的jar包你那里是否有吧。
adam1103 2011-07-23
  • 打赏
  • 举报
回复
sessiionFactory 错误~!!

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧