使用hibernate时,将hibernate.cfg.xml中 <session-factory name="SessionFactory">的那么属性去掉即可。因为,有了name属性hibernate会试图把这个sessionfacotry注册到jndi中去。
相关文章
- 10-16Hibernate插入错误:GenericJDBCException: could not insert:
- 10-16apache启动错误 AH00072: make_sock: could not bind to address [::]:443 windows系统端口/进程查看
- 10-16Hibernate错误:Could not bind factory to JNDI
- 10-16Hibernate学习错误集锦-GenericJDBCException: could not execute statement
- 10-16Hibernate: org.hibernate.exception.SQLGrammarException: could not insert: 错误
- 10-16hibernate的Could not execute JDBC batch update错误原因及处理
- 10-16Hibernate: org.hibernate.exception.SQLGrammarException: could not insert: 错误
- 10-16Hibernate错误:Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update