Test failure of JBoss monitor


The JBoss Application Server Monitor test button always fails with the message Please check the host and port configuration or returns an exception containing Connection refused to host: with a JBoss Application Server running on a Linux box.


This is a well-known issue on some Linux distributions. It is necessary to edit the /etc/hosts file.

If the file content looks like myserver.server.com myserver localhost localhost.localdomain, it must be updated using the following sample. localhost localhost.localdomain
myipserver myserver.server.com myserver

The JBoss Application Server must be restarted before trying again.