Translated message

A translation of this page exists in English.

ハイバーネートで java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only が発生する

Solution Verified - Updated -

Issue

  • webservice を EAP 6.3 にデプロイする場合、そしてサービスがデータベースへの接続を作成すると、以下のエラーが発生します。
java.lang.UnsupportedOperationException:JBAS011859:Naming context is read-only
                at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:155)
                at org.jboss.as.naming.WritableServiceBasedNamingStore.rebind(WritableServiceBasedNamingStore.java:102)
                at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:269)
                at org.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
                at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
                at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:260)
                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.3.0
  • ハイバーネート

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content