ハイバーネートで java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only が発生する
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
