与struts集成的休眠状态下为null

与struts集成的休眠状态下为null

本文介绍了配置的SessionFactory:与struts集成的休眠状态下为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想做一个将冬眠与Struts集成在一起的应用程序.我有所有正确的"hibernate.cfg.xml",并将此文件放在正确的位置.而且我构建了一个用于操作servlet的休眠插件.我看起来一切正常,已经在Google上进行了引用,我也做同样的事情,但是在服务器上运行该应用程序时仍然会收到此消息
"配置的SessionFactory:null ",然后"由于意外的异常或引发的错误而无法初始化Struts ActionServlet "

谁能帮我.告诉我我做错了什么?

感谢您的任何评论
CK

Hello everyone
I want to do an app that integrate hibernate with struts. I have all correct "hibernate.cfg.xml" and i put this file in the right place. And i build an hibernate plugin to use for action servlets. I look like everything is ok, i have referenced on google, and i do the same but i still get this when run the app on server
"Configured SessionFactory: null" and then "Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown"

Could anyone help me please. Tell me what did i do wrong?

Thanks for any comments
CK

推荐答案


这篇关于配置的SessionFactory:与struts集成的休眠状态下为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 04:28