开发者社区 问答 正文

关于struts和spring和hibernate的 异常问题

异常是:

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/SystemException

展开
收起
小旋风柴进 2016-03-04 16:03:57 2095 分享 版权
1 条回答
写回答
取消 提交回答
  • Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]

    没有创建SessionFactory这个bean在ServletContext资源下,位置在applicationContext.xml,貌似是整合SSH2框架问题,在Spring配置文件applicationContext.xml里没定义SessionFactory这个bean。
    总的来说,配置出错,找不到对应的类!

    2019-07-17 18:52:25
    赞同 展开评论