Unable to connect to remote Jboss 4.0.5 Server
Hi,
I'm trying to connect to a remote jboss server and it refuses to connect. I've tried connecting to a an exact copy running as a local instance and it works fine. I think it is connected with some form of IP/Hostname translation going on.
Using the bin/troubleshooting/jbossDebug tool I am reciving this error:
>jbossDebug testServer 8080 4.0.2
Trying to connect to jboss server : testServer running at port :8080
Connecting for {JBossLibraries=[.\jboss\402\dom4j.jar, .\jboss\402\jbossall-client.jar],
JndiProperties={java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory,
java.naming.provider.url=http://testServer:8080/invoker/JNDIFactory}}
JBoss Discovery : Initialised successfully
Jboss Client => com.adventnet.adaptors.clients.jboss.AMJBossClient@a470b8
Unable to connect to jboss server
com.adventnet.adaptors.clients.ConnectionLostException: java.rmi.ConnectException: Connection refused to host:
127.0.0.1; nested
exception is:
java.net.ConnectException: Connection refused: connect
at com.adventnet.adaptors.clients.JMXConverter.convertInvocationTargetException(JMXConverter.java:897)
at com.adventnet.adaptors.clients.ProxyMBeanServer.getDefaultDomain(ProxyMBeanServer.java:583)
at com.adventnet.adaptors.clients.AbstractJMXConnector.getDefaultDomain(AbstractJMXConnector.java:271)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.main(AMJMXConnectorFactory.java:330)
com.adventnet.adaptors.clients.ConnectionLostException
The server has the following lin in the http-invoker/META_INF/jboss-service.xml:
<attribute name="InvokerURL">
http://testServer:8080/invoker/JMXInvokerServlet
</attribute>
The hostname "testServer" is defined on both local and remote server as a hostfile entry to point to the public IP address of the server. However, the typing "hostname" at the remote servers command prompt returns "test" and this is also mapped locally in the hosts file to 127.0.0.1
Now I believe that the initial connection is working and at some point the Jboss server is attempting to resolve the hostname of the server and obtaining the IP address "127.0.0.1" and returning this as a parameter for subsequent JMX calls. Is there any way to prevent this and use a different hostname or explicit IP address?
Note: We can't map the "hostname" of the remote server to it's public IP address as this address is actually configured to be the main firewall and cannot accept public ip requests from internal servers. Ie executing "telnet <public ip> 8080" will fail on the remote server.
Thanks,
Ads
New to ADSelfService Plus?