Friday, January 23, 2015

[Liferay] java.net.UnknownHostException | Unknown Host Exception Liferay

Hi,

I got this exception on a fresh Linux machine. It was clear that Liferay was not able to find the hostname entries properly. Solution was simple. Just needed to add hostname in hosts file. Here is the exception log.

And the solution here.. On linux open /etc/hosts file and make an entry.

> sudo vim /etc/hosts


That's it. Pretty easy. :) Hope this helps someone.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.