前辈指点:J2EE框架运行报错,见问题补充
Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.w...
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 ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [org/apex/bookstore/vo/Orders.hbm.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [org/apex/bookstore/vo/Orders.hbm.xml] cannot be opened because it does not exist 展开
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [org/apex/bookstore/vo/Orders.hbm.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [org/apex/bookstore/vo/Orders.hbm.xml] cannot be opened because it does not exist 展开
3个回答
展开全部
创建 sessionFactory时异常, org/apex/bookstore/vo/Orders.hbm.xml] 不存在 这个文件请你查看路径
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是不是你的spring配置文件中没有把映射文件的路径写对?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询