我有一臺名爲「named」的服務器,它似乎會導致Grails無法找到本地主機。 (如圖)的/etc/hosts
在遠程環境中運行grails的問題
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.<clinit>(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.<init>(CacheManager.java:260)
at net.sf.ehcache.hibernate.EhCacheProvider.start(EhCacheProvider.java:128)
內容:
127.0.0.1 localhost localhost.localdomain zaftra
::1 localhost localhost.localdomain zaftra
你能提供你的系統架構和你的`的/ etc/hosts`的內容(或簡短的片斷)? – 2011-01-12 21:38:21
@Rob:完成。系統架構是運行Ubuntu 10.04的雲服務器。 – 2011-01-12 21:53:50