title: JMX agent throws java.net.MalformedURLException when host name is set to all numeric value
body: <p>We are using tomcat 7.0.27 in our application. We are below setting jmx properties on tomcat startup.</p>
  
  <p>-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8666 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false</p>
  
  <p>If the centOS server hostname on which this tomcat is running is set to all numeric value like 005056940096, tomcat does not start. It gives below exception.</p>
  
  <p>Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: 005056940096: 005056940096
  Server is running on centOS6. If hostname is set to non numeric value, it works properly.</p>
  
  <p>I tried setting hostname in /etc/hosts and /etc/sysconfig/network, it still does not work.
  I also tried setting below property to server ip address, still it does not work.
   -Djava.rmi.server.hostname=${IP}</p>
  
  <p>Please let me know if you have come across any such issue.
  Thanks.</p>