【问题标题】:Hibernate error while trying to start WAS 6.1尝试启动 WAS 6.1 时出现休眠错误
【发布时间】:2011-07-07 18:26:14
【问题描述】:

当我尝试启动 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)

这是指什么权限?

【问题讨论】:

    标签: hibernate websphere


    【解决方案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

    芒露

    【讨论】:

      猜你喜欢
      • 2019-03-02
      • 1970-01-01
      • 2019-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多