Hibernate错误:Could not bind factory to JNDI

时间:2014-03-20 05:16:10   收藏:0   阅读:481

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

Hibernate错误:Could not bind factory to JNDI,布布扣,bubuko.com

原文:http://www.cnblogs.com/bluepoint2009/p/hibernate-not-bind-factory-to-JNDI.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!