You wrote at some point that GlassFish printed
something like service:jmx:rmi:///jndi/rmi://<hostname>:8686/jmxrmi instead of
service:jmx:rmi:///jndi/rmi://172.31.226.242:8686/jmxrmi
Can you access the admin console through
http://<hostname>:4848 ?
Maybe you could try to launch jconsole with the option -J-Djava.util.logging.config.file=logging.properties, specifying a level FINER for the package javax.management.remote.rmi.
The logs should give you a hint about where the problem lies (before connection, during connection attempt, ...).
[Message sent by forum member 'vkoniecz' (vkoniecz)]
http://forums.java.net/jive/thread.jspa?messageID=361111