Could not bind factory to JNDI
来源:互联网 发布:cf检测游戏数据异常 编辑:程序博客网 时间:2024/05/01 04:35
16:22:52,770 WARN SessionFactoryObjectFactory:98 - Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getNameParser(Unknown Source)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
at persistence.HibernateUtil.<clinit>(HibernateUtil.java:15)
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getNameParser(Unknown Source)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
at persistence.HibernateUtil.<clinit>(HibernateUtil.java:15)
at hello.HelloWorld.main(HelloWorld.java:14)
解决办法:去掉hibernate.cfg.xml中的sessionFactory的name属性。
Next Step:可以去查看为什么sessionFactory会写到JNDI中? 如果要加一个sessionFactory名字, 还要做哪些相应的配置?
- Could not bind factory to JNDI
- Could not bind factory to JNDI
- Could not bind factory to JNDI
- Could not bind factory to JNDI
- Could not bind factory to JNDI
- Hibernate--------- Could not bind factory to JNDI
- Could not bind factory to JNDI
- WARN: HHH000277:Could not bind factory to JNDI
- JUnit测试中加上使用log4j.properties Could not bind factory to JNDI
- Hibernate4.3.5报Could not bind factory to JNDI的解决方案
- 服务启动时log4j提示Could not bind factory to JNDI
- hibernate错误 Could not unbind factory from JNDI
- httpmake_sock: could not bind to address
- (问题记录--已解决)Not binding factory to JNDI, no JNDI name configured
- Web项目停止在Not binding factory to JNDI, no JNDI name configured
- Hibernate中 Not binding factory to JNDI, no JNDI name configured(开发错误记录)
- APACHE故障解决办法(apache could not bind to address)
- TOR "Could not bind to,127.0.0.1:9050: under ubuntu
- eVC4++安装问题
- sql server 执行计划
- H264基本概念--图像、帧、片、NALU
- 关于Hibernate使用组合主键时,组合主键中有些字段为null时的解决方法
- 我公司承办“2012年中外大使夫人迎春联欢会”
- Could not bind factory to JNDI
- js中获取事件对象的方法小结
- 什么事情该做,什么事情不该做
- 使用HTML 5/CSS3五步快速制作便签贴特效
- 指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效
- 天津市部分机关负责人出席“中外大使夫人迎新春联谊会”
- 虚拟化之ESXI配置备份
- 【MSDN】ASP.NET Web 服务、企业服务和 .NET Remoting 的性能比较测试与建议
- InstallAnywhere 2009 Enterprise build 3783如何破解