Version 6

    Problem:

     

    You see:

     

     

    Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@76e8a7)]
         at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
         at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         ... 51 more
    Caused by: java.lang.RuntimeException: Exception creating identity: ip-10-251-110-98: ip-10-251-110-98
         at org.jboss.remoting.ident.Identity.get(Identity.java:211)
         at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
         at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
         at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
         at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
         at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
         ... 56 more

     

     

    Solution:

     

    This happens when the etc/hosts file does not contain the correct entries. Edit your etc/hosts file to map the loopback address with the hostname. The etc/hosts file should contain this (in addition to whatever is already present in the file):

     

     

    127.0.0.1     ip-10-251-110-98 localhost localhost.localdomain localhost4 localhost4.localdomain4

     

    where ip-10-251-110-98 is the hostname (as seen in the exception stack trace, above).

     

    See these forum discussions for more details:

     

    http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128722

     

    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116927

     

    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099861

     

     

    Referenced by: