Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3754888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:36:51+00:00 2026-05-19T09:36:51+00:00

I have a server that is named and it seems to cause Grails to

  • 0

I have a server that is “named” and it seems to cause Grails to be unable to find localhost.

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)

Contents of /etc/hosts (as shown):

127.0.0.1       localhost localhost.localdomain zaftra
::1       localhost localhost.localdomain zaftra
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:36:51+00:00Added an answer on May 19, 2026 at 9:36 am

    I’m going to assume that you’re on some flavor of linux. If that’s the case, you might have a look at your /etc/hosts file – is there an entry for localhost? I’d expect to see something like:

    127.0.0.1     localhost zaftra
    ::1           localhost
    

    I did some Googling – there’s a similar question over on SuperUser – the suggestion there was to add the following to /etc/resolv.conf:

    search (domainname) // in your case, search (zaftra)
    

    You might also try:

    search zaftra
    // or
    search zaftra.example.com // if there's a more fully-qualified domain name you can use
    

    (That’s based off of an entry I’ve got in resolv.conf on one of my Ubuntu machines).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a server that is running Ubuntu Linux Server Edition. I once had
I have a server that has several virtual machines running on it. I'm trying
If I have a Server/Client application that both reference the same DLL which contains
We have an application in Grails 2.0 that we have working when we run
I have a server that returns JSON in the following format: [{Name: Student1, Email:
I have a server that runs on Solaris 10, whenever I go to the
I have a server that runs different websites on different ports. All of them
I have a server that is serving files to several windows clients using the
I have a server that connects to multiple clients using TCP/IP connections, using C
I have a server that I have no control over, it's JSON based and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.