Environment: Worklight Studio 5.0.5, OSX 10.7.5, Eclipse Juno, jdk 7u9 64-bit
Fresh install of everything including updating eclipse.ini according to Worklight Studio 5.0.5 steps.
1. Create new Worklight project with Worklight app.
2. Create iPhone environment under Worklight app.
3. Receive following error when building Worklight app where xxxxxx is replaced with my hostname.
iphone build failed: java.net.UnknownHostException: xxxxxx: xxxxxx; nodename nor servname provided, or not known
2012-12-12 14:55:57 Application 'HelloWorklight' with all environments build finished.
2012-12-12 14:55:57 Deploying application 'HelloWorklight' with all environments to Worklight Server...
This topic has been locked.
3 replies Latest Post - 2012-12-12T22:21:26Z by MikeRott
Pinned topic Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
jww 1000009JHY7 PostsACCEPTED ANSWER
Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment2012-12-12T21:57:52Z in response to jwwChanging that environment setup to:
Environment: Worklight Studio 5.0.5, OSX 10.7.5, Eclipse Indigo, jdk 7u9 64-bit, Xcode 4.5.2
Builds and runs successfully with no UnknownHostException.
The install steps at: http://www.ibm.com/developerworks/mobile/worklight/download/alternatives.html
mention "In addition to Eclipse Juno (4.2), IBM Worklight Developer Edition also supports Eclipse Helios SR2 (3.6.2)."
On first read of that statement the implication is that Worklight 5.0.5 doesn't support Eclipse Indigo so we were trying Eclipse Juno where we encountered the problem with UnknownHostException.
Our further review did find that Eclipse Indigo is, as I would expect, supported by Worklight 5.0.5::
Indigo is fine for our needs at this time.
SystemAdmin 110000D4XK2327 PostsACCEPTED ANSWER
Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment2012-12-12T22:14:39Z in response to jwwI am not able to replicate your issue on 5.0.5, OSX 10.7.5, and Eclipse Juno, however many of the search results for that error message seem to indicate it can be caused by transient network issues. Did you check if the issue still exists in Juno while being resolved in Indigo, or could it simply be a timing issue where it appeared to be resolved later because that is when you installed Indigo?
MikeRott 120000KCYA2 PostsACCEPTED ANSWER
Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment2012-12-12T22:21:26Z in response to SystemAdminPerhaps it's a problem with /etc/hosts? See: http://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception