Search code examples
exceptionwebsphere

Websphere 8.5 - java.net.UnknownHostException


I'd tried to start websphere 8.5 and get UnknownHostException, and I saw this:http://www-01.ibm.com/support/docview.wss?uid=swg21501971

I did set the hostname and reboot, but still get this exception, what else have to do?


Solution

  • UnknownHostException certainly refers to a name resolution issue.

    Since this happens during the Websphere startup I guess this is a profile relocation, i.e. either you have changed the machine hostname or you moved the websphere profile to another machine.

    If this is the case follow the guidelines mentioned here.

    Otherwise add the machine hostname you are trying to call(i.e. through EJB(?)) in your /etc/hosts file.