title: Issues running grails on a remote environment
body: <p>I have a server that is "named" and it seems to cause Grails to be unable to find localhost. </p>
  
  <pre><code>Running Grails application..
  2011-01-12 20:45:14,046 [main] ERROR ehcache.Cache  - Unable to set localhost. This prevents creation of a GUID. Cause was: zaftra: zaftra
  java.net.UnknownHostException: zaftra: zaftra
      at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
      at net.sf.ehcache.Cache.&lt;clinit&gt;(Cache.java:143)
      at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:463)
      at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:369)
      at net.sf.ehcache.CacheManager.configure(CacheManager.java:445)
      at net.sf.ehcache.CacheManager.init(CacheManager.java:302)
      at net.sf.ehcache.CacheManager.&lt;init&gt;(CacheManager.java:260)
      at net.sf.ehcache.hibernate.EhCacheProvider.start(EhCacheProvider.java:128)
  </code></pre>
  
  <p>Contents of <code>/etc/hosts</code> (as shown):</p>
  
  <pre><code>127.0.0.1       localhost localhost.localdomain zaftra
  ::1       localhost localhost.localdomain zaftra
  </code></pre>