AnsweredAssumed Answered

JBAS011859: Naming context is read-only

Question asked by wade.zeng on Sep 30, 2016
Latest reply on Sep 30, 2016 by wade.zeng
Hi all,

i got the following error when deployed application with activiti in jboss-as-7.1.1.Final,  and found answer in
http://stackoverflow.com/questions/20881496/java-lang-unsupportedoperationexception-jbas011859-naming-context-is-read-only
but the got the error after set '-Dorg.apache.activemq.broker.jmx.createConnector=false' in jboss.

any suggests are appreciated, thanks.


16:53:31,847 INFO  [org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl] (MSC service thread 1-2) Found 1 auto-discoverable Process Engine Configurators
16:53:31,851 INFO  [org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl] (MSC service thread 1-2) Found 1 Process Engine Configurators in total:
16:53:31,853 INFO  [org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl] (MSC service thread 1-2) class org.activiti.management.jmx.JMXConfigurator (priority:10000)
16:53:31,855 INFO  [org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl] (MSC service thread 1-2) Executing beforeInit() of class org.activiti.management.jmx.JMXConfigurator (priority:10000)
16:53:32,606 INFO  [org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl] (MSC service thread 1-2) Executing configure() of class org.activiti.management.jmx.JMXConfigurator (priority:10000)
16:53:32,633 ERROR [stderr] (jmxConnectorStarterThread) Exception in thread "jmxConnectorStarterThread" java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only

16:53:32,636 ERROR [stderr] (jmxConnectorStarterThread)    at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:126)

16:53:32,640 ERROR [stderr] (jmxConnectorStarterThread)    at org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:56)

16:53:32,643 ERROR [stderr] (jmxConnectorStarterThread)    at org.jboss.as.naming.NamingContext.bind(NamingContext.java:221)

16:53:32,645 ERROR [stderr] (jmxConnectorStarterThread)    at org.jboss.as.naming.InitialContext.bind(InitialContext.java:161)

16:53:32,647 ERROR [stderr] (jmxConnectorStarterThread)    at org.jboss.as.naming.NamingContext.bind(NamingContext.java:230)

16:53:32,649 ERROR [stderr] (jmxConnectorStarterThread)    at javax.naming.InitialContext.bind(InitialContext.java:419)

16:53:32,651 ERROR [stderr] (jmxConnectorStarterThread)    at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:643)

16:53:32,653 ERROR [stderr] (jmxConnectorStarterThread)    at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:426)

16:53:32,656 ERROR [stderr] (jmxConnectorStarterThread)    at org.activiti.management.jmx.DefaultManagementAgent$1.run(DefaultManagementAgent.java:224)

16:53:32,658 ERROR [stderr] (jmxConnectorStarterThread)    at java.lang.Thread.run(Thread.java:745)

Outcomes