求高手解决一个关于问题org.springframework.beans.factory.BeanCreationException

jun_422 2012-05-21 01:31:03
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Tomcat 6.0\webapps\PCHMonitor\WEB-INF\classes\applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
...全文
169 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xk678 2012-06-11
  • 打赏
  • 举报
回复
是少了jar包吧
ttigerdna 2012-06-09
  • 打赏
  • 举报
回复
是否继承了 ActionSupport
woshizhuwukong 2012-06-09
  • 打赏
  • 举报
回复
sessionFactory是否注入 是否setter
lxbccsu 2012-06-08
  • 打赏
  • 举报
回复
加入hibernate-annotations.jar再测试下。
Ze_CHC 2012-06-08
  • 打赏
  • 举报
回复
同求 我也遇到一样的问题

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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