配置的SessionFactory:与struts集成的休眠状态下为null [英] Configured SessionFactory: null in intergrated hibernate with struts

查看:149
本文介绍了配置的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

推荐答案

检查库,您会忘记其中的某些或差异.
另外,请确保其中只有一个"struts.jar"或"struts-coreXXXX.jar".我发生了一次,却花了时间-很多时间.
Check the libraries, you''ll have forgotten some or differences in there.
Also make sure you have only a "struts.jar" OR "struts-coreXXXX.jar" in there. Occurred to me one time and did cost time - lots of time.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆