Error "JBAS011859: Naming context is read-only" when starting Camel JMX server

Solution Unverified - Updated -

Issue

We are trying to migrate our Camel application to EAP 6, but we receive the following error:

Thread name: Camel Thread #1 - Camel Thread #0 - JMXConnector: service:jmx:rmi:///jndi/rmi://SES-05-70594:1099/jmxrmi/camel

java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
    at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:144)
    at org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:62)
    at org.jboss.as.naming.NamingContext.bind(NamingContext.java:248)
    at org.jboss.as.naming.InitialContext.bind(InitialContext.java:147)
    at org.jboss.as.naming.NamingContext.bind(NamingContext.java:257)
    at javax.naming.InitialContext.bind(Unknown Source)
    at javax.management.remote.rmi.RMIConnectorServer.bind(Unknown Source)
    at javax.management.remote.rmi.RMIConnectorServer.start(Unknown Source)
    at org.apache.camel.management.DefaultManagementAgent$1.run(DefaultManagementAgent.java:429)
    at java.lang.Thread.run(Unknown Source)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x

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