macjohnzh
macjohnzh
采纳率0%
2016-01-03 02:23

启动tomcat报错:好像是hbm.xml的问题

10:19:25,238 ERROR ContextLoader:215 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deparrtmentDaoImpl': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\apache-tomcat-6.0.44\webapps\ItcastOA\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/itcast/oa/domain/User.hbm.xml
at

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • Isenhart Isenhart 5年前

    顶楼上。应该是配置的问题

    点赞 评论 复制链接分享
  • PP0897 PP0897 5年前

    hibernate的包是不是少了还是配置文件写错了

    点赞 评论 复制链接分享

相关推荐