尝试启动 WAS 6.1 时出现休眠错误
当我尝试启动 WAS 6.1 时,出现错误:
[07/07/11 14:15:40:518 EDT] 0000001d SessionFactor W org.hibernate.impl.SessionFactoryObjectFactory addInstance Could not bind factory to JNDI
javax.naming.NoPermissionException: NO_PERMISSION exception caught [Root exception is org.omg.CORBA.NO_PERMISSION: Not authorized to perform bind_new_corba_context operation. vmcid: 0x0 minor code: 0 completed: No]
at com.ibm.ws.naming.jndicos.CNContextImpl.doCreateSubcontext(CNContextImpl.java:2992)
at com.ibm.ws.naming.jndicos.CNContextImpl.createSubcontext(CNContextImpl.java:1003)
at com.ibm.ws.naming.util.WsnInitCtx.createSubcontext(WsnInitCtx.java:390)
at javax.naming.InitialContext.createSubcontext(InitialContext.java:435)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:69)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
这指的是哪个权限?
When I try to start the WAS 6.1, I get the error:
[07/07/11 14:15:40:518 EDT] 0000001d SessionFactor W org.hibernate.impl.SessionFactoryObjectFactory addInstance Could not bind factory to JNDI
javax.naming.NoPermissionException: NO_PERMISSION exception caught [Root exception is org.omg.CORBA.NO_PERMISSION: Not authorized to perform bind_new_corba_context operation. vmcid: 0x0 minor code: 0 completed: No]
at com.ibm.ws.naming.jndicos.CNContextImpl.doCreateSubcontext(CNContextImpl.java:2992)
at com.ibm.ws.naming.jndicos.CNContextImpl.createSubcontext(CNContextImpl.java:1003)
at com.ibm.ws.naming.util.WsnInitCtx.createSubcontext(WsnInitCtx.java:390)
at javax.naming.InitialContext.createSubcontext(InitialContext.java:435)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:69)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
What permission is this referring to?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Hiberante 正在尝试将某些内容绑定到名称空间(WAS 托管的 JNDI 名称空间)。
我不确定您的 WAS 环境的策略(安全配置)。可以将其配置为仅允许某些用户更改名称服务器中的内容。
有关此空间的一些信息,请参阅以下内容。
我已将您链接到 V7,但 6.1 的信息也相同。将下面链接中的 v7r0 替换为 v6r1 以查找 V6.1 中的等效信息
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tsec_naming.html
HTH
曼格鲁
Hiberante is trying to bind something to the name space (the JNDI name space that is hosted by WAS).
I am not sure about the policy (security config) of your WAS environment. It can be configured to allow only certiain users to change things in the name server.
Refer to the following for some info in this space.
I have linked you to V7 but the info is the same for 6.1 too. Replace v7r0 in the link below to v6r1 to find the equivalent info in V6.1
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tsec_naming.html
HTH
Manglu