Hibernate错误:Could not bind factory to JNDI

使用hibernate时,将hibernate.cfg.xml中 <session-factory name="SessionFactory">的那么属性去掉即可。因为,有了name属性hibernate会试图把这个sessionfacotry注册到jndi中去。

posted @ 2014-03-19 17:17  bluepoint2009  阅读(433)  评论(0编辑  收藏  举报